mirror of
https://github.com/captbaritone/webamp.git
synced 2026-01-23 10:15:31 +00:00
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
This commit is contained in:
parent
e32c111abc
commit
ede13a331f
1 changed files with 8 additions and 1 deletions
9
.github/workflows/code-size.yml
vendored
9
.github/workflows/code-size.yml
vendored
|
|
@ -7,11 +7,18 @@ jobs:
|
|||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/checkout@v4
|
||||
- name: Install pnpm
|
||||
uses: pnpm/action-setup@v2
|
||||
with:
|
||||
version: 9.12.0
|
||||
- name: Use Node.js 20.x
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 20.x
|
||||
cache: "pnpm"
|
||||
- name: Install Dependencies
|
||||
run: pnpm install --frozen-lockfile
|
||||
- uses: preactjs/compressed-size-action@v2
|
||||
with:
|
||||
repo-token: "${{ secrets.GITHUB_TOKEN }}"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue