We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 805d8ff commit 3c1bbfdCopy full SHA for 3c1bbfd
templates/cli/.github/workflows/npm-publish.yml
@@ -31,7 +31,14 @@ jobs:
31
npm run mac-x64
32
npm run mac-arm64
33
- name: Publish NPM library
34
- run: npm publish
+ run: |
35
+ if ${{ contains(github.event.release.tag_name, '-RC') }}; then
36
+ echo "Publishing Release Candidate ${{ github.event.release.tag_name}} to NPM"
37
+ npm publish --tag next
38
+ else
39
+ echo "Publishing ${{ github.event.release.tag_name}} to NPM"
40
+ npm publish
41
+ fi
42
env:
43
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
44
- uses: fnkr/github-action-ghr@v1
0 commit comments