Skip to content

Commit

Permalink
Add provenance to publishConfig in package.json (#98)
Browse files Browse the repository at this point in the history
* Add provenance to publishConfig in package.json

* Create sharp-worms-divide.md

* Add id-token permission to CD, what used to publish to npm with provenance statements
  • Loading branch information
kamiazya authored Feb 1, 2024
1 parent af9f16a commit e156adb
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/sharp-worms-divide.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"web-csv-toolbox": patch
---

Add provenance to publishConfig in package.json
2 changes: 2 additions & 0 deletions .github/workflows/cd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ jobs:
permissions:
contents: write # Used to commit to "Version Packages" PR
pull-requests: write # Used to create "Version Packages" PR
id-token: write # Used to publish to npm with provenance statements
# Other permissions are defaulted to none
steps:
- name: Checkout Repo
Expand Down Expand Up @@ -92,6 +93,7 @@ jobs:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
needs: release
if: needs.release.outputs.published == 'false'
steps:
Expand Down
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,9 @@
"bugs": {
"url": "https://github.com/kamiazya/web-csv-toolbox/issues"
},
"publishConfig": {
"provenance": true
},
"homepage": "https://kamiazya.github.io/web-csv-toolbox/",
"devDependencies": {
"@biomejs/biome": "1.5.3",
Expand All @@ -105,4 +108,4 @@
"vitest": "^1.2.2",
"webdriverio": "^8.29.1"
}
}
}

0 comments on commit e156adb

Please sign in to comment.