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 9769c05 commit dc6ad0bCopy full SHA for dc6ad0b
.github/workflows/release-npm.yml
@@ -36,7 +36,10 @@ jobs:
36
run: "yarn install --frozen-lockfile"
37
38
- name: 🚀 Publish to npm
39
- run: npm publish --provenance --access public --tag "$TAG"
+ id: npm-publish
40
+ run: |
41
+ npm publish --provenance --access public --tag "$TAG"
42
+ release=$(jq -r '"\(.name)@\(.version)"' package.json)
43
+ echo "id=$release" >> $GITHUB_OUTPUT
44
env:
- NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
45
TAG: ${{ contains(steps.npm-publish.outputs.id, '-rc.') && 'next' || 'latest' }}
0 commit comments