Skip to content

Commit 2a50c47

Browse files
authored
ci: publish releases with npm OIDC (#30)
1 parent a0ee326 commit 2a50c47

1 file changed

Lines changed: 7 additions & 6 deletions

File tree

.github/workflows/release.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,18 @@ jobs:
1515
steps:
1616
- uses: actions/checkout@v6
1717

18-
- name: Use Node.js 22.x
18+
- name: Use Node.js 24.x
1919
uses: actions/setup-node@v6
2020
with:
21-
node-version: 22.x
21+
node-version: 24.x
2222
registry-url: https://registry.npmjs.org
23-
cache: npm
23+
package-manager-cache: false
24+
25+
- name: Use npm with trusted publishing support
26+
run: npm install --global npm@11.18.0
2427

2528
- name: Install dependencies
26-
run: npm install
29+
run: npm ci
2730

2831
- name: Type check
2932
run: npm run type-check
@@ -36,8 +39,6 @@ jobs:
3639

3740
- name: Publish to npm
3841
run: npm publish --access public
39-
env:
40-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
4142

4243
- name: Create GitHub Release
4344
uses: softprops/action-gh-release@v2

0 commit comments

Comments
 (0)