Update pnpm to v9.15.4 #692
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release | |
on: | |
pull_request: | |
types: [opened, synchronize, reopened] | |
release: | |
# "released" events are emitted either when directly be released or be edited from pre-released. | |
types: [prereleased, released] | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
continue-on-error: true | |
permissions: | |
contents: read | |
id-token: write | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: pnpm/[email protected] | |
- uses: actions/setup-node@v4 | |
with: | |
# https://nodejs.org/en/about/previous-releases | |
node-version: '22.x' | |
registry-url: 'https://registry.npmjs.org' | |
cache: pnpm | |
cache-dependency-path: pnpm-lock.yaml | |
- name: install and build | |
run: | | |
pnpm install | |
pnpm build | |
- name: Set tag rc | |
if: github.event_name == 'pull_request' | |
run: | | |
git config user.email "dummy@dummy" | |
git config user.name "dummy" | |
# dummy tag for dry-run | |
git tag v999.999.999-rc.$GITHUB_RUN_NUMBER | |
- name: set git tag version | |
run: | | |
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 | |
# https://docs.npmjs.com/generating-provenance-statements | |
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: 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 }} |