Fix update-visual-snapshots workflow: action versions + node version
- Switch checkout/setup-node/setup-pnpm to @v6 to match CI - Replace node-version-file (.nvmrc doesn't exist) with node-version: 24 - Switch upload-artifact to @v7 to match CI Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
7c924827c9
commit
4f8af21550
1 changed files with 5 additions and 5 deletions
10
.github/workflows/update-visual-snapshots.yml
vendored
10
.github/workflows/update-visual-snapshots.yml
vendored
|
|
@ -62,19 +62,19 @@ jobs:
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v6
|
||||||
with:
|
with:
|
||||||
ref: ${{ github.event.pull_request.head.ref || github.event.inputs.branch || github.ref }}
|
ref: ${{ github.event.pull_request.head.ref || github.event.inputs.branch || github.ref }}
|
||||||
# Use a token with push rights so the commit-back step can push
|
# Use a token with push rights so the commit-back step can push
|
||||||
token: ${{ secrets.GITHUB_TOKEN }}
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
- name: Setup pnpm
|
- name: Setup pnpm
|
||||||
uses: pnpm/action-setup@v4
|
uses: pnpm/action-setup@v6
|
||||||
|
|
||||||
- name: Setup Node
|
- name: Setup Node
|
||||||
uses: actions/setup-node@v4
|
uses: actions/setup-node@v6
|
||||||
with:
|
with:
|
||||||
node-version-file: ".nvmrc"
|
node-version: 24
|
||||||
cache: "pnpm"
|
cache: "pnpm"
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
|
|
@ -96,7 +96,7 @@ jobs:
|
||||||
|
|
||||||
- name: Upload snapshots as artifact
|
- name: Upload snapshots as artifact
|
||||||
if: always()
|
if: always()
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v7
|
||||||
with:
|
with:
|
||||||
name: visual-snapshots
|
name: visual-snapshots
|
||||||
path: apps/planner/app/**/__screenshots__/
|
path: apps/planner/app/**/__screenshots__/
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue