Skip to content

Commit

Permalink
chore(ci): Publish with Provenance (#3305)
Browse files Browse the repository at this point in the history
Added configurations to package.json and the CI workflow, so that the GitHub Actions Workflow and semantic-release generate provenance information for this package (see https://github.com/semantic-release/npm#npm-provenance).
  • Loading branch information
dim-0 committed May 29, 2024
1 parent ceaaf89 commit f9f3be8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ jobs:
Release:
permissions:
contents: write
id-token: write
needs: [UnitTests, OtherTests]
if: |
github.ref == 'refs/heads/master' &&
Expand Down
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@
"./marked.min.js": "./marked.min.js",
"./package.json": "./package.json"
},
"publishConfig": {
"provenance": true
},
"repository": "git://github.com/markedjs/marked.git",
"homepage": "https://marked.js.org",
"bugs": {
Expand Down

0 comments on commit f9f3be8

Please sign in to comment.