Skip to content

Commit a55fea1

Browse files
committed
ci: switch to npm OIDC trusted publishing
1 parent 7ce4c67 commit a55fea1

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

.github/workflows/publish.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ on:
77
jobs:
88
publish:
99
runs-on: ubuntu-latest
10+
permissions:
11+
contents: write
12+
id-token: write
1013
steps:
1114
- name: Check out repository
1215
uses: actions/checkout@v4
@@ -15,9 +18,8 @@ jobs:
1518
- name: Set up Node.js
1619
uses: actions/setup-node@v4
1720
with:
18-
node-version: '20.19.5'
21+
node-version: '22'
1922
- run: npm ci
2023
- run: npx semantic-release
2124
env:
2225
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
23-
NPM_TOKEN: ${{secrets.NPM_TOKEN}}

0 commit comments

Comments
 (0)