Skip to content

Commit 847e0d6

Browse files
chore: use npm oidc auth for publishing (#1468)
Signed-off-by: Lukas Reining <lukas.reining@codecentric.de>
1 parent a923c16 commit 847e0d6

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/release-please.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@ jobs:
3434
with:
3535
node-version-file: '.nvmrc'
3636
registry-url: "https://registry.npmjs.org"
37+
cache: 'npm'
38+
- name: Update npm (for OIDC auth)
39+
run: npm install -g npm@^11.5.1
3740
- name: Build Packages
3841
if: ${{ steps.release.outputs.releases_created }}
3942
run: |
@@ -46,5 +49,5 @@ jobs:
4649
- name: Publish to NPM
4750
if: ${{ steps.release.outputs.releases_created }}
4851
env:
49-
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
52+
NPM_CONFIG_PROVENANCE: true
5053
run: npm run publish

0 commit comments

Comments
 (0)