Skip to content

Commit fd50907

Browse files
committed
ci: migrate npm publish to OIDC
1 parent 9b53bd1 commit fd50907

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

.github/workflows/release.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,9 @@ jobs:
5555
node-version: 'lts/*'
5656
registry-url: 'https://registry.npmjs.org'
5757

58+
- name: Install npm >= 11.5.1 (required for OIDC publishing)
59+
run: npm install -g npm@^11.5.1
60+
5861
- name: 'Install Dependencies'
5962
run: pnpm install --frozen-lockfile
6063

@@ -82,7 +85,7 @@ jobs:
8285
commit: "[ci] release"
8386
title: "[ci] release"
8487
env:
85-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
8688
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
87-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
88-
NPM_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
89+
# Workaround for changesets/action requiring this var to be set.
90+
# OIDC trusted publishing does not use an npm token secret.
91+
NPM_TOKEN: ""

0 commit comments

Comments
 (0)