Skip to content
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
16 changes: 12 additions & 4 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,16 +32,24 @@ jobs:
echo "No pnpm project with a check script. Nothing to run."
fi

- if: steps.scripts.outputs.run == 'true'
uses: pnpm/action-setup@v6

- if: steps.scripts.outputs.run == 'true'
uses: actions/setup-node@v6
with:
node-version: 24
cache: pnpm

# Corepack starts the pnpm version from `packageManager` faster than pnpm/action-setup.
- if: steps.scripts.outputs.run == 'true'
run: corepack enable

# Later pushes to the same pull request skip the install while dependencies are unchanged.
- if: steps.scripts.outputs.run == 'true'
id: modules
uses: actions/cache@v6
with:
path: node_modules
key: modules-${{ runner.os }}-node24-${{ hashFiles('pnpm-lock.yaml', 'pnpm-workspace.yaml', '**/package.json') }}

- if: steps.scripts.outputs.run == 'true' && steps.modules.outputs.cache-hit != 'true'
run: pnpm install --frozen-lockfile --ignore-scripts

- if: steps.scripts.outputs.run == 'true'
Expand Down
Loading