Dependency Updates #2
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: Dependency Updates | |
| on: | |
| workflow_dispatch: | |
| schedule: | |
| - cron: "17 7 * * 1" | |
| concurrency: | |
| group: dependency-updates | |
| cancel-in-progress: true | |
| permissions: {} | |
| jobs: | |
| verify: | |
| name: Verify pnpm Updates | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| env: | |
| HUSKY: 0 | |
| outputs: | |
| changed: ${{ steps.updates.outputs.changed }} | |
| steps: | |
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7 | |
| with: | |
| persist-credentials: false | |
| - uses: pnpm/action-setup@0ebf47130e4866e96fce0953f49152a61190b271 # v6 | |
| with: | |
| version: 11.17.0 | |
| - uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7 | |
| with: | |
| node-version: 24 | |
| cache: pnpm | |
| - name: Install | |
| run: pnpm install --frozen-lockfile | |
| - name: Update Dependencies | |
| # Keep declarations aligned with the Node.js major used by CI. | |
| run: pnpm update --latest "!@types/node" | |
| - name: Detect Changes | |
| id: updates | |
| shell: bash | |
| run: | | |
| if git diff --quiet -- package.json pnpm-lock.yaml; then | |
| echo "changed=false" >> "${GITHUB_OUTPUT}" | |
| else | |
| echo "changed=true" >> "${GITHUB_OUTPUT}" | |
| fi | |
| - name: Verify | |
| if: steps.updates.outputs.changed == 'true' | |
| run: pnpm run verify | |
| - name: Install Playwright Browsers | |
| if: steps.updates.outputs.changed == 'true' | |
| run: pnpm exec playwright install --with-deps chromium firefox webkit | |
| - name: E2E | |
| if: steps.updates.outputs.changed == 'true' | |
| run: pnpm run e2e:all | |
| - name: Upload Dependency Updates | |
| if: steps.updates.outputs.changed == 'true' | |
| uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7 | |
| with: | |
| name: pnpm-dependency-updates | |
| path: | | |
| package.json | |
| pnpm-lock.yaml | |
| if-no-files-found: error | |
| pull-request: | |
| name: Create Dependency Pull Request | |
| needs: verify | |
| if: needs.verify.outputs.changed == 'true' | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| steps: | |
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7 | |
| with: | |
| persist-credentials: false | |
| - name: Download Dependency Updates | |
| uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8 | |
| with: | |
| name: pnpm-dependency-updates | |
| - name: Create Pull Request | |
| uses: peter-evans/create-pull-request@5f6978faf089d4d20b00c7766989d076bb2fc7f1 # v8 | |
| with: | |
| add-paths: | | |
| package.json | |
| pnpm-lock.yaml | |
| branch: automated/pnpm-dependencies | |
| commit-message: "chore(deps): update dependencies" | |
| delete-branch: true | |
| title: "chore(deps): update dependencies" | |
| body: | | |
| Weekly grouped dependency updates generated with pnpm. | |
| The full verification suite and cross-browser E2E tests passed | |
| before this pull request was created. |