Skip to content

Commit

Permalink
ci: pnpm should be installed before node for proper caching
Browse files Browse the repository at this point in the history
  • Loading branch information
sodatea committed Feb 24, 2023
1 parent 09e1ff7 commit 4cb86a1
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ jobs:
name: Build the package
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
with:
version: 7
- uses: actions/setup-node@v3
with:
node-version: 18
cache: 'pnpm'
- uses: pnpm/action-setup@v2
with:
version: 7
- run: pnpm install
env:
CYPRESS_INSTALL_BINARY: 0
Expand Down Expand Up @@ -60,13 +60,13 @@ jobs:
FEATURE_FLAGS: ${{ matrix.flag-for-ts }} ${{ matrix.flag-for-jsx }} ${{ matrix.flag-for-router }} ${{ matrix.flag-for-pinia }} ${{ matrix.flag-for-vitest }} ${{ matrix.flag-for-e2e }}
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
with:
version: 7
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'pnpm'
- uses: pnpm/action-setup@v2
with:
version: 7
- uses: actions/cache/restore@v3
id: cache-restore
with:
Expand Down

0 comments on commit 4cb86a1

Please sign in to comment.