Skip to content

Commit 4cc4c01

Browse files
authored
Remove call to npm dist-tag (#5065)
As it does not work for NPM Trusted Publishing npm/cli#8547 Signed-off-by: Michael Telatynski <[email protected]>
1 parent 0ae483c commit 4cc4c01

File tree

1 file changed

+2
-12
lines changed

1 file changed

+2
-12
lines changed

.github/workflows/release-npm.yml

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -36,17 +36,7 @@ jobs:
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'

0 commit comments

Comments
 (0)