Skip to content

Commit fd2b24f

Browse files
committed
Set up provenance and trusted publishing
1 parent 25e7c2b commit fd2b24f

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

.github/workflows/publish.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@ name: Release
22

33
on: [push]
44

5+
permissions:
6+
contents: write
7+
issues: write
8+
pull-requests: write
9+
id-token: write
10+
511
jobs:
612
release:
713
runs-on: ubuntu-latest
@@ -16,7 +22,8 @@ jobs:
1622
- name: Install Node.js
1723
uses: actions/setup-node@v3
1824
with:
19-
node-version: 18
25+
node-version: 24
26+
registry-url: 'https://registry.npmjs.org'
2027

2128
- uses: pnpm/action-setup@v2
2229
name: Install pnpm
@@ -46,6 +53,5 @@ jobs:
4653
- name: Create Release
4754
env:
4855
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
49-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
5056
run: |
5157
pnpm release

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,9 @@
5353
},
5454
"packageManager": "pnpm@9.15.0+sha512.76e2379760a4328ec4415815bcd6628dee727af3779aaa4c914e3944156c4299921a89f976381ee107d41f12cfa4b66681ca9c718f0668fa0831ed4c6d8ba56c",
5555
"publishConfig": {
56-
"access": "public"
56+
"access": "public",
57+
"registry": "https://registry.npmjs.org/",
58+
"provenance": true
5759
},
5860
"auto": {
5961
"plugins": [

0 commit comments

Comments
 (0)