Skip to content

Commit 389d666

Browse files
authored
build: adds trusted publishing (#85)
1 parent fe53bfe commit 389d666

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
- uses: actions/checkout@v6
1010
- uses: actions/setup-node@v6
1111
with:
12-
node-version: 18
12+
node-version: 24
1313
cache: 'npm'
1414

1515
- name: NPM Install

.github/workflows/publish.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ name: Publish to NPM/GPR
22
on:
33
release:
44
types: [published]
5+
permissions:
6+
id-token: write
7+
contents: read
58

69
jobs:
710
publish:
@@ -15,7 +18,7 @@ jobs:
1518
- name: Setup node
1619
uses: actions/setup-node@v6
1720
with:
18-
node-version: 18
21+
node-version: 24
1922
cache: 'npm'
2023
registry-url: 'https://registry.npmjs.org'
2124

@@ -27,8 +30,6 @@ jobs:
2730

2831
- name: Publish (NPM)
2932
run: npm publish --access public
30-
env:
31-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
3233

3334
- uses: actions/setup-node@v6
3435
with:

0 commit comments

Comments
 (0)