Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

provenance 2 #501

Merged
merged 2 commits into from
Jan 9, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 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,19 +37,21 @@ 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.
git config user.email "dummy@dummy"
git config user.name "dummy"
pnpm version from-git --allow-same-version --no-git-tag-version -ws || true
pnpm format

- name: deploy
run: pnpm publish --access=public --no-git-checks --recursive
run: NPM_CONFIG_PROVENANCE=true pnpm publish --access=public --no-git-checks --recursive
if: github.event_name == 'release' && !github.event.release.prerelease
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: deploy (dry-run)
run: pnpm publish --access=public --no-git-checks --dry-run --recursive
run: NPM_CONFIG_PROVENANCE=true pnpm publish --access=public --no-git-checks --dry-run --recursive
if: github.event_name != 'release' || github.event.release.prerelease
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
Loading