Skip to content

Commit fa8c77b

Browse files
committed
ci(release): switch to npm trusted publishers with OIDC
1 parent 2161f33 commit fa8c77b

1 file changed

Lines changed: 13 additions & 3 deletions

File tree

.github/workflows/release.yml

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ on:
44
push:
55
tags:
66
- 'v*'
7+
-
8+
9+
permissions:
10+
id-token: write # Required for OIDC
11+
contents: read
712

813
jobs:
914
goreleaser:
@@ -19,9 +24,14 @@ jobs:
1924
with:
2025
go-version: 1.25.x
2126

22-
- name: npm-login
23-
run: |
24-
npm config set '//registry.npmjs.org/:_authToken'=${{ secrets.NPM_TOKEN }}
27+
- uses: actions/setup-node@v4
28+
with:
29+
node-version: '24'
30+
registry-url: 'https://registry.npmjs.org'
31+
32+
- name: Update npm
33+
run: npm install -g npm@latest
34+
2535
- name: Install Task
2636
uses: go-task/setup-task@v1
2737

0 commit comments

Comments
 (0)