Skip to content

Commit 881837d

Browse files
authored
Merge pull request #1684 from no23reason/provenance
feat: publish with provenance
2 parents eab26d5 + fd009ed commit 881837d

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

.github/workflows/release.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@ jobs:
77
release:
88
name: Release
99
runs-on: ubuntu-latest
10+
permissions:
11+
contents: write # to be able to publish a GitHub release
12+
issues: write # to be able to comment on released issues
13+
pull-requests: write # to be able to comment on released pull requests
14+
id-token: write # to enable use of OIDC for npm provenance
1015
steps:
1116
- name: Checkout
1217
uses: actions/checkout@v3
@@ -15,7 +20,7 @@ jobs:
1520
with:
1621
node-version-file: .nvmrc
1722
- name: Install dependencies
18-
run: npm install
23+
run: npm clean-install
1924
- name: Build
2025
run: npm run dist
2126
- name: Release

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@
2323
"main": "dist-modules",
2424
"typings": "./dist-modules/index.d.ts",
2525
"sideEffects": false,
26+
"publishConfig": {
27+
"provenance": true
28+
},
2629
"scripts": {
2730
"dist": "rimraf ./dist-modules && tsc -p .",
2831
"prepublishOnly": "npm run dist",

0 commit comments

Comments
 (0)