Skip to content

Commit 45c9450

Browse files
committed
ci: enable npm provenance
1 parent 6ba7ff4 commit 45c9450

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ permissions:
1010
contents: write
1111
issues: write
1212
pull-requests: write
13+
id-token: write
1314

1415
jobs:
1516
release:
@@ -29,4 +30,5 @@ jobs:
2930
env:
3031
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3132
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
33+
NPM_CONFIG_PROVENANCE: true
3234
run: npx semantic-release

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,5 +48,8 @@
4848
"semantic-release": "^24.2.1",
4949
"tsup": "^8.0.2",
5050
"typescript": "^5.4.3"
51+
},
52+
"publishConfig": {
53+
"provenance": true
5154
}
5255
}

0 commit comments

Comments
 (0)