Skip to content

Commit

Permalink
Set up provenance
Browse files Browse the repository at this point in the history
https://docs.npmjs.com/generating-provenance-statements
This may not work properly because of the dynamic versioning of the package.json file.

But I try it anyway.
  • Loading branch information
kitsuyui committed Jan 9, 2025
1 parent 84c2eb2 commit 2b01e9c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ jobs:

continue-on-error: true

permissions:
contents: read
id-token: write

steps:
- uses: actions/checkout@v4

Expand All @@ -33,6 +37,9 @@ jobs:
- name: set git tag version
run: |
# https://docs.npmjs.com/generating-provenance-statements
# This may not work properly. dynamic versioning may cause a problem.
export NPM_CONFIG_PROVENANCE=true
git config user.email "dummy@dummy"
git config user.name "dummy"
pnpm version from-git --allow-same-version --no-git-tag-version -ws || true
Expand Down

0 comments on commit 2b01e9c

Please sign in to comment.