Skip to content

Commit 569bd56

Browse files
authored
chore: use npm trusted publish (#469)
1 parent b914e70 commit 569bd56

1 file changed

Lines changed: 1 addition & 9 deletions

File tree

.github/workflows/release.yml

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ jobs:
111111
permissions:
112112
contents: write
113113
packages: write
114+
id-token: write # Required for OIDC
114115
steps:
115116
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
116117
- uses: ./.github/actions/clone
@@ -182,27 +183,18 @@ jobs:
182183
- name: 'Setup npm'
183184
run: |
184185
npm install -g npm@latest
185-
echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> ~/.npmrc
186-
env:
187-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
188186
189187
- name: Publish native addons
190188
run: |
191189
node ./packages/cli/publish-native-addons.ts
192190
node ./packages/global/publish-native-addons.ts
193-
env:
194-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
195-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
196191
197192
- name: Publish
198193
run: |
199194
pnpm publish --filter=./packages/core --access public --no-git-checks
200195
pnpm publish --filter=./packages/test --access public --no-git-checks
201196
pnpm publish --filter=./packages/cli --access public --no-git-checks
202197
pnpm publish --filter=./packages/global --access public --no-git-checks
203-
env:
204-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
205-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
206198
207199
- name: Create release body
208200
run: |

0 commit comments

Comments
 (0)