File tree Expand file tree Collapse file tree 1 file changed +2
-12
lines changed Expand file tree Collapse file tree 1 file changed +2
-12
lines changed Original file line number Diff line number Diff line change 3636 run : " yarn install --frozen-lockfile"
3737
3838 - name : 🚀 Publish to npm
39- id : npm-publish
40- run : |
41- npm publish --provenance --access public --tag next
42- release=$(jq -r '"\(.name)@\(.version)"' package.json)
43- echo "id=$release" >> $GITHUB_OUTPUT
39+ run : npm publish --provenance --access public --tag "$TAG"
4440 env :
4541 NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
46-
47- - name : 🎖️ Add `latest` dist-tag to final releases
48- if : steps.npm-publish.outputs.id && !contains(steps.npm-publish.outputs.id, '-rc.')
49- run : npm dist-tag add "$release" latest
50- env :
51- NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
52- release : ${{ steps.npm-publish.outputs.id }}
42+ TAG : contains(steps.npm-publish.outputs.id, '-rc.') && 'next' || 'latest'
You can’t perform that action at this time.
0 commit comments