Skip to content

Commit ed86311

Browse files
committed
ci: npm publish
1 parent e8454a0 commit ed86311

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

.github/workflows/release.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ on:
77

88
permissions:
99
contents: write
10+
id-token: write
1011

1112
jobs:
1213
release:
@@ -17,16 +18,14 @@ jobs:
1718
- name: Install NodeJS
1819
uses: actions/setup-node@v4
1920
with:
20-
node-version: 18
21+
node-version: 24
2122
registry-url: 'https://registry.npmjs.org/'
2223
- name: Install dependencies
2324
run: npm install
2425
- name: Build project
2526
run: npm run rollup
2627
- name: Publish to npm
27-
env:
28-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
29-
run: npm publish --access public
28+
run: npm publish --provenance --access public
3029
- name: Get Info
3130
run: |
3231
echo "version=$(grep -Eo '[0-9]+(\.[0-9]+)+' CHANGELOG.md | head -n 1)" >> $GITHUB_OUTPUT

0 commit comments

Comments
 (0)