Skip to content

Commit

Permalink
use corepack on GH Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
shumbo committed Sep 16, 2024
1 parent b1701c9 commit 441a6a0
Showing 1 changed file with 21 additions and 21 deletions.
42 changes: 21 additions & 21 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,25 +8,18 @@ jobs:
working-directory: Web
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v2
- uses: actions/setup-node@v4
with:
node-version: "20"
- uses: pnpm/action-setup@v3
name: Install pnpm
with:
version: 8
run_install: false
node-version: "22"
cache: "pnpm"
- name: Enable corepack
run: |
corepack enable &&
corepack install
- 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
run: pnpm install
- name: Format
Expand All @@ -44,12 +37,14 @@ jobs:
working-directory: Web
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v2
- uses: actions/setup-node@v4
with:
node-version: "20"
- uses: pnpm/action-setup@v3
with:
version: 8
node-version: "22"
cache: "pnpm"
- name: Enable corepack
run: |
corepack enable &&
corepack install
- name: pnpm Build
run: pnpm install
- name: Build Checker
Expand All @@ -71,9 +66,14 @@ jobs:
working-directory: Web
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v2
- uses: actions/setup-node@v4
with:
node-version: "20"
node-version: "22"
cache: "pnpm"
- name: Enable corepack
run: |
corepack enable &&
corepack install
- uses: pnpm/action-setup@v3
with:
version: 8
Expand Down

0 comments on commit 441a6a0

Please sign in to comment.