chore(deps): update pnpm to v11.23.0 #3863
This file contains hidden or 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: autofix.ci # needed to securely identify the workflow | |
| on: | |
| pull_request: | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| permissions: | |
| contents: read | |
| jobs: | |
| autofix: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7 | |
| with: | |
| persist-credentials: false | |
| fetch-depth: 0 | |
| - run: npm i -g --force corepack && corepack enable | |
| - uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0 | |
| with: | |
| node-version: lts/* | |
| cache: pnpm | |
| - name: π¦ Install dependencies | |
| run: pnpm install | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| - name: π Lint project (+ fix) | |
| run: pnpm run lint:fix | |
| - name: π Check whether command docs are affected | |
| id: docs-paths | |
| run: | | |
| base="$(git merge-base "origin/${{ github.base_ref }}" HEAD)" | |
| if git diff --quiet "$base" HEAD -- packages docs scripts; then | |
| echo "changed=false" >> "$GITHUB_OUTPUT" | |
| else | |
| echo "changed=true" >> "$GITHUB_OUTPUT" | |
| fi | |
| - name: π Sync command docs | |
| if: steps.docs-paths.outputs.changed == 'true' | |
| run: pnpm docs:generate | |
| - name: π Check whether captures are affected | |
| id: capture-paths | |
| run: | | |
| base="$(git merge-base "origin/${{ github.base_ref }}" HEAD)" | |
| if git diff --quiet "$base" HEAD -- packages capture; then | |
| echo "changed=false" >> "$GITHUB_OUTPUT" | |
| else | |
| echo "changed=true" >> "$GITHUB_OUTPUT" | |
| fi | |
| - name: πΎ Restore capture fixture | |
| if: steps.capture-paths.outputs.changed == 'true' | |
| uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0 | |
| with: | |
| path: ~/.cache/nuxt-cli-capture | |
| key: capture-fixture-${{ runner.os }}-${{ hashFiles('capture/fixture/package.json') }} | |
| - name: π Build project | |
| if: steps.capture-paths.outputs.changed == 'true' | |
| run: pnpm build | |
| - name: πΌ Re-record terminal captures | |
| if: steps.capture-paths.outputs.changed == 'true' | |
| run: node --experimental-strip-types capture/record.ts | |
| - uses: autofix-ci/action@7a166d7532b277f34e16238930461bf77f9d7ed8 # 7a166d7532b277f34e16238930461bf77f9d7ed8 |