Skip to content

Commit e9c5c62

Browse files
committed
Use trusted publishing
1 parent 41258f2 commit e9c5c62

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

.github/workflows/publish.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,21 +5,23 @@ on:
55
tags:
66
- '*'
77

8+
permissions:
9+
id-token: write # Required for OIDC
10+
contents: read
11+
812
jobs:
913
package:
1014
runs-on: ubuntu-latest
1115
name: Publish NPM Package
1216

1317
steps:
1418
- name: Cloning repo
15-
uses: actions/checkout@v3
19+
uses: actions/checkout@v5
1620

17-
- uses: actions/setup-node@v4
21+
- uses: actions/setup-node@v5
1822
with:
1923
node-version: '18.x'
2024
registry-url: 'https://registry.npmjs.org'
2125

2226
- run: npm ci
2327
- run: npm run deploy
24-
env:
25-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)