Skip to content

Commit 64cd19a

Browse files
authored
chore: support trusted publishing (#171)
1 parent 572745b commit 64cd19a

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

.github/workflows/npm-publish.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,12 @@ jobs:
3232
registry-url: "https://registry.npmjs.org"
3333
cache: "npm"
3434
- run: npm ci
35+
- run: npm i -g npm@latest
3536
- run: npm run build --if-present
3637
- run: npm version ${TAG_NAME} --git-tag-version=false
3738
env:
3839
TAG_NAME: ${{ github.ref_name }}
3940
- run: npm publish --provenance --access public --tag next
4041
if: "github.event.release.prerelease"
41-
env:
42-
NODE_AUTH_TOKEN: ${{ secrets.npm_secret }}
4342
- run: npm publish --provenance --access public
4443
if: "!github.event.release.prerelease"
45-
env:
46-
NODE_AUTH_TOKEN: ${{ secrets.npm_secret }}

0 commit comments

Comments
 (0)