Skip to content

Commit

Permalink
switch to built-in pnpm cache setup
Browse files Browse the repository at this point in the history
  • Loading branch information
ef4 committed Oct 18, 2023
1 parent 4d3a0f5 commit 939d17b
Showing 1 changed file with 2 additions and 14 deletions.
16 changes: 2 additions & 14 deletions .github/actions/setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,28 +13,16 @@ runs:
with:
node-version: 16
registry-url: 'https://registry.npmjs.org'
cache: pnpm

- 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-store2-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store2-
- uses: actions/cache@v3
name: Setup pnpm cache for puppeteer
name: Setup cache for puppeteer
with:
# See .puppeteerrc.cjs, where we set this as the place puppeteer
# installs the browser. It needs to be cached the same as our pnpm
Expand Down

0 comments on commit 939d17b

Please sign in to comment.