Skip to content

Commit 5567aed

Browse files
Copilotmark-wiemer
andauthored
chore: use OIDC to publish to npm (#5681)
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: mark-wiemer <7833360+mark-wiemer@users.noreply.github.com>
1 parent 611b89d commit 5567aed

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/release-please.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ on:
77

88
permissions:
99
contents: read
10+
id-token: write
1011

1112
jobs:
1213
release_please:
@@ -30,8 +31,6 @@ jobs:
3031
environment: npm
3132
needs: release_please
3233
if: needs.release_please.outputs.releaseCreated
33-
permissions:
34-
id-token: write
3534
steps:
3635
- uses: actions/checkout@v6
3736
with:
@@ -41,6 +40,9 @@ jobs:
4140
node-version: "22"
4241
registry-url: "https://registry.npmjs.org"
4342

43+
- name: Upgrade npm for OIDC support
44+
run: npm install -g npm@latest
45+
4446
- name: Install dependencies
4547
run: npm ci --ignore-scripts --force --no-fund --no-audit
4648

0 commit comments

Comments
 (0)