Skip to content

Commit

Permalink
ncm-60 update npm publish command
Browse files Browse the repository at this point in the history
  • Loading branch information
vordgi committed Jan 31, 2024
1 parent 71a5ec9 commit 782e3a3
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,13 @@ jobs:
- name: Publish on main
if: "!contains(github.ref_name, 'canary')"
run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

- name: Update version on canary
if: contains(github.ref_name, 'canary')
run: npm version --no-git-tag-version ${{github.ref_name}}
run: |
npm set //registry.npmjs.org/:_authToken=${{secrets.NPM_TOKEN}}
npm publish --access public
- name: Publish on canary
if: contains(github.ref_name, 'canary')
run: npm publish --tag canary
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
run: |
npm set //registry.npmjs.org/:_authToken=${{secrets.NPM_TOKEN}}
npm version --no-git-tag-version ${{github.ref_name}}
npm publish --tag canary --access public

0 comments on commit 782e3a3

Please sign in to comment.