Skip to content

Commit 77aa94b

Browse files
committed
Add NPM trusted publishing
1 parent 11acfd1 commit 77aa94b

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/publish.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,18 @@ on:
55
tags:
66
- '*'
77

8+
permissions:
9+
id-token: write
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@v4
19+
uses: actions/checkout@v5
1620

1721
- uses: actions/setup-node@v4
1822
with:
@@ -21,5 +25,3 @@ jobs:
2125

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

0 commit comments

Comments
 (0)