Skip to content

Commit 3c1bbfd

Browse files
committed
Allow NPM RC deployments
1 parent 805d8ff commit 3c1bbfd

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

templates/cli/.github/workflows/npm-publish.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,14 @@ jobs:
3131
npm run mac-x64
3232
npm run mac-arm64
3333
- name: Publish NPM library
34-
run: npm publish
34+
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
3542
env:
3643
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
3744
- uses: fnkr/github-action-ghr@v1

0 commit comments

Comments
 (0)