PNPM in action.

This commit is contained in:
Bradley Shellnut 2023-09-27 22:18:43 +13:00
parent 2dbff98772
commit 96a35b0388

View file

@ -25,6 +25,24 @@ jobs:
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- uses: pnpm/action-setup@v2
name: Install pnpm
with:
version: 8
run_install: false
- name: Get pnpm store directory
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
- uses: actions/cache@v3
name: Setup pnpm cache
with:
path: ${{ env.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Install dependencies
run: pnpm install
- run: npm ci
- run: npm run build --if-present
- run: npm test