Skip to content

Commit

Permalink
Merge pull request #58 from github/add-release-action
Browse files Browse the repository at this point in the history
Add a release action
  • Loading branch information
koddsson authored Mar 30, 2022
2 parents d8525e4 + 902fbb9 commit cb62e5a
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 75 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Publish

on:
release:
types: [created]

jobs:
publish-npm:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 14
registry-url: https://registry.npmjs.org/
cache: npm
- run: npm ci
- run: npm test
- run: npm version ${TAG_NAME} --git-tag-version=false
env:
TAG_NAME: ${{ github.event.release.tag_name }}
- run: npm whoami; npm --ignore-scripts publish
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
75 changes: 0 additions & 75 deletions .github/workflows/release.yml

This file was deleted.

0 comments on commit cb62e5a

Please sign in to comment.