Skip to content

Commit

Permalink
ci(create-release): add support for prerelease publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
yomatters committed Sep 30, 2024
1 parent 10ce860 commit 91a920d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/create-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@ jobs:
run: npm ci
- name: Build assets
run: npm run build
- run: npm publish --provenance --access public
- name: Determine NPM tag
id: npm-tag
run: echo npm-tag=$(jq -r .version package.json | grep -q 'alpha\|beta\|rc' && echo "next" || echo "latest") >> $GITHUB_OUTPUT
- run: npm publish --provenance --access public --tag ${{ steps.npm-tag.outputs.npm-tag }}
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit 91a920d

Please sign in to comment.