Skip to content

Commit

Permalink
Merge pull request #308 from Outblock:306-feature-update-ci-to-speed-…
Browse files Browse the repository at this point in the history
…up-pnpm

[FEATURE] Update CI to speed up pnpm
  • Loading branch information
tombeckenham authored Dec 19, 2024
2 parents 44904bd + b946482 commit 7f27200
Showing 1 changed file with 6 additions and 21 deletions.
27 changes: 6 additions & 21 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,31 +16,16 @@ jobs:
node-version: [22.x]

steps:
- uses: actions/checkout@v3

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- uses: actions/checkout@v4

- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: 9
run_install: false
uses: pnpm/action-setup@v4

- name: Get pnpm store directory
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
- name: Setup pnpm cache
uses: actions/cache@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
path: ${{ env.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
node-version: ${{ matrix.node-version }}
cache: 'pnpm'

- name: Install dependencies
run: pnpm install
Expand Down

0 comments on commit 7f27200

Please sign in to comment.