Skip to content

Commit 92c4599

Browse files
committed
Fix npm trusted publishing workflow
1 parent 05f055a commit 92c4599

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

.github/workflows/build.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ on: [push, pull_request]
33

44
permissions:
55
contents: read
6+
id-token: write
67
packages: write
78

89
jobs:
@@ -83,8 +84,6 @@ jobs:
8384
- name: Publish Release Packages
8485
if: startsWith(github.ref, 'refs/tags/v') && matrix.os == 'ubuntu-latest'
8586
run: npm publish --workspaces --access public
86-
env:
87-
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
8887
- name: Setup GitHub CI Node.js environment
8988
if: github.event_name != 'pull_request' && startsWith(github.ref, 'refs/heads/') && matrix.os == 'ubuntu-latest' && contains(steps.version.outputs.version, '-')
9089
uses: actions/setup-node@v6

0 commit comments

Comments
 (0)