Skip to content

Commit ede13a3

Browse files
committed
Fix compressed size workflow for pnpm
- Add Node.js setup step (required for pnpm) - Add pnpm install step to install dependencies before build - Update checkout action from v2 to v4 - Ensure dependencies are available before running deploy script
1 parent e32c111 commit ede13a3

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/workflows/code-size.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,18 @@ jobs:
77
runs-on: ubuntu-latest
88

99
steps:
10-
- uses: actions/checkout@v2
10+
- uses: actions/checkout@v4
1111
- name: Install pnpm
1212
uses: pnpm/action-setup@v2
1313
with:
1414
version: 9.12.0
15+
- name: Use Node.js 20.x
16+
uses: actions/setup-node@v4
17+
with:
18+
node-version: 20.x
19+
cache: "pnpm"
20+
- name: Install Dependencies
21+
run: pnpm install --frozen-lockfile
1522
- uses: preactjs/compressed-size-action@v2
1623
with:
1724
repo-token: "${{ secrets.GITHUB_TOKEN }}"

0 commit comments

Comments
 (0)