Reverted to previous caching method (setup-node says no)

This commit is contained in:
Core 2022-11-05 00:09:54 +00:00
parent cfa57aa844
commit 322915daf2
2 changed files with 9 additions and 38 deletions

View file

@ -23,12 +23,6 @@ jobs:
# Make sure the actual branch is checked out when running on pull requests
ref: ${{ github.head_ref }}
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: "pnpm"
- uses: pnpm/action-setup@v2
name: Setup pnpm 🚧
id: pnpm-install
@ -36,20 +30,11 @@ jobs:
version: 7
run_install: false
- name: Get pnpm store directory ⌨️
id: pnpm-cache
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
- uses: actions/cache@v3
name: Setup cache 🔒
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
path: ${{ steps.pnpm-cache.outputs.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: Update lockfile
run: pnpm update

View file

@ -15,13 +15,6 @@ jobs:
- name: Checkout 🛎
uses: actions/checkout@v3
- name: Setup node env 🏗
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
check-latest: true
cache: 'pnpm'
- uses: pnpm/action-setup@v2
name: Setup pnpm 🚧
id: pnpm-install
@ -29,19 +22,12 @@ jobs:
version: 7
run_install: false
- name: Get pnpm store directory ⌨️
id: pnpm-cache
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
- uses: actions/cache@v3
name: Setup cache 🔒
- name: Setup node env 🏗
uses: actions/setup-node@v3
with:
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
node-version: ${{ matrix.node }}
check-latest: true
cache: 'pnpm'
- name: Install dependencies 👨🏻‍💻
run: pnpm install