Skip to content

Commit d54194b

Browse files
authored
chore: enable trusted publish (#262)
1 parent 1ad28ae commit d54194b

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

.github/workflows/publish.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,12 @@ jobs:
2828
node-version: 22.x
2929
registry-url: 'https://registry.npmjs.org'
3030
cache: 'npm'
31+
- run: npm i -g npm@latest
3132
- run: npm ci
3233
- run: npm version ${TAG_NAME} --git-tag-version=false
3334
env:
3435
TAG_NAME: ${{ github.ref_name }}
3536
- run: npm publish --provenance --access public --tag next
3637
if: "github.event.release.prerelease"
37-
env:
38-
NODE_AUTH_TOKEN: ${{ secrets.npm_secret }}
3938
- run: npm publish --provenance --access public
4039
if: "!github.event.release.prerelease"
41-
env:
42-
NODE_AUTH_TOKEN: ${{ secrets.npm_secret }}

0 commit comments

Comments
 (0)