Skip to content

Commit 7c618e8

Browse files
authored
Publish to NPM using provenance statements (#261)
Signed-off-by: Juan Cruz Viotti <[email protected]>
1 parent 1eb472f commit 7c618e8

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

.github/workflows/package.yml

+2
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ concurrency:
1313

1414
permissions:
1515
contents: write
16+
# See https://docs.npmjs.com/generating-provenance-statements#about-npm-provenance
17+
id-token: write
1618

1719
jobs:
1820
package:

npm-deploy.sh

+1
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ cat << EOF > "$OUTPUT/npm/staging/package.json"
9090
"url": "git+https://github.com/sourcemeta/jsonschema.git"
9191
},
9292
"publishConfig": {
93+
"provenance": true,
9394
"access": "public"
9495
},
9596
"devDependencies": {

0 commit comments

Comments
 (0)