Skip to content

Commit

Permalink
update publish
Browse files Browse the repository at this point in the history
  • Loading branch information
Feilner authored Apr 28, 2022
1 parent a8563f3 commit 10126f5
Showing 1 changed file with 13 additions and 10 deletions.
23 changes: 13 additions & 10 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,17 @@ jobs:
uses: actions/setup-node@v1
with:
node-version: 12
registry-url: https://registry.npmjs.org/
- name: Publish
- name: Publish release
if: "!contains(github.event.release.tag_name, 'beta')"
run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
- name: Publish as beta
if: contains(github.event.release.tag_name, 'beta')
run: npm publish --tag beta --access public
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
uses: JS-DevTools/npm-publish@v1
with:
token: ${{ secrets.NPM_TOKEN }}
tag: latest
access: public
- name: Publish beta
if: "contains(github.event.release.tag_name, 'beta')"
uses: JS-DevTools/npm-publish@v1
with:
token: ${{ secrets.NPM_TOKEN }}
tag: beta
access: public

0 comments on commit 10126f5

Please sign in to comment.