Skip to content

Commit a78b3be

Browse files
authored
chore: set up trusted publishing (#39)
1 parent b4b9249 commit a78b3be

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

.github/workflows/release.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,17 @@ on:
77
release:
88
types: [created]
99

10+
permissions:
11+
id-token: write # required for OIDC
12+
contents: read
13+
1014
jobs:
1115
test:
1216
runs-on: ubuntu-latest
1317
steps:
1418
- uses: actions/checkout@v5
1519
- uses: actions/setup-node@v5
1620
with:
17-
cache: "npm"
1821
node-version: 22
1922
- run: npm ci --ignore-scripts --no-audit --no-fund
2023
- run: npm test
@@ -27,10 +30,8 @@ jobs:
2730
- uses: actions/setup-node@v5
2831
with:
2932
node-version: 22
30-
cache: "npm"
3133
registry-url: https://registry.npmjs.org/
34+
- run: npm install -g npm@latest
3235
- run: npm ci --ignore-scripts --no-audit --no-fund
3336
- run: npm run build
34-
- run: npm publish --public
35-
env:
36-
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
37+
- run: npm publish --access public

0 commit comments

Comments
 (0)