Skip to content

Commit 9495177

Browse files
committed
chore(repo): remove corepack from workflows
1 parent 5bfb8a0 commit 9495177

File tree

3 files changed

+6
-35
lines changed

3 files changed

+6
-35
lines changed

.github/workflows/node-windows.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,8 @@ jobs:
3737
with:
3838
node-version: ${{ matrix.node }}
3939

40-
- name: Enable Corepack
41-
id: pnpm-setup
42-
run: |
43-
corepack enable
44-
corepack prepare pnpm@latest --activate
40+
- name: Install PNPM
41+
uses: pnpm/action-setup@v4
4542

4643
- name: pnpm install
4744
run: pnpm install --ignore-scripts

.github/workflows/release.yml

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -35,21 +35,8 @@ jobs:
3535
node-version: 20
3636
registry-url: https://registry.npmjs.org/
3737

38-
- name: Enable Corepack
39-
id: pnpm-setup
40-
run: |
41-
corepack enable
42-
corepack prepare pnpm@latest --activate
43-
pnpm config set script-shell "/usr/bin/bash"
44-
echo "::set-output name=pnpm_cache_dir::$(pnpm store path)"
45-
46-
- name: pnpm Cache
47-
uses: actions/cache@v3
48-
with:
49-
path: ${{ steps.pnpm-setup.outputs.pnpm_cache_dir }}
50-
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
51-
restore-keys: |
52-
${{ runner.os }}-pnpm-store-
38+
- name: Install PNPM
39+
uses: pnpm/action-setup@v4
5340

5441
- name: ESLint Cache
5542
uses: actions/cache@v3

.github/workflows/validate.yml

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -35,21 +35,8 @@ jobs:
3535
with:
3636
node-version: ${{ matrix.node }}
3737

38-
- name: Enable Corepack
39-
id: pnpm-setup
40-
run: |
41-
corepack enable
42-
corepack prepare pnpm@latest --activate
43-
pnpm config set script-shell "/usr/bin/bash"
44-
echo "::set-output name=pnpm_cache_dir::$(pnpm store path)"
45-
46-
- name: pnpm Cache
47-
uses: actions/cache@v3
48-
with:
49-
path: ${{ steps.pnpm-setup.outputs.pnpm_cache_dir }}
50-
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
51-
restore-keys: |
52-
${{ runner.os }}-pnpm-store-
38+
- name: Install PNPM
39+
uses: pnpm/action-setup@v4
5340

5441
- name: ESLint Cache
5542
uses: actions/cache@v3

0 commit comments

Comments
 (0)