Skip to content

Commit f93043a

Browse files
committed
chore(ci): use npm oidc for releases
1 parent 869c695 commit f93043a

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

.github/workflows/release.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
- "v*"
77

88
permissions:
9-
id-token: write
9+
id-token: write # Required for OIDC publishing on npm
1010
contents: write
1111

1212
jobs:
@@ -45,7 +45,7 @@ jobs:
4545
- uses: actions/setup-node@v3
4646
with:
4747
cache: pnpm
48-
node-version-file: .nvmrc
48+
node-version: "24" # Node 24+ for npm OIDC trusted publishing
4949
registry-url: "https://registry.npmjs.org"
5050
- run: pnpm install --frozen-lockfile --prefer-offline
5151
- name: Build the libraries
@@ -64,9 +64,6 @@ jobs:
6464
else
6565
pnpm publish -r --access=public --no-git-checks
6666
fi
67-
env:
68-
NPM_CONFIG_PROVENANCE: true
69-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
7067
7168
- name: Create a draft release
7269
run: |

0 commit comments

Comments
 (0)