Skip to content

Commit

Permalink
chore(repo): remove corepack from workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
shellscape committed Feb 5, 2025
1 parent 5bfb8a0 commit 9495177
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 35 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/node-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,8 @@ jobs:
with:
node-version: ${{ matrix.node }}

- name: Enable Corepack
id: pnpm-setup
run: |
corepack enable
corepack prepare pnpm@latest --activate
- name: Install PNPM
uses: pnpm/action-setup@v4

- name: pnpm install
run: pnpm install --ignore-scripts
Expand Down
17 changes: 2 additions & 15 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,21 +35,8 @@ jobs:
node-version: 20
registry-url: https://registry.npmjs.org/

- name: Enable Corepack
id: pnpm-setup
run: |
corepack enable
corepack prepare pnpm@latest --activate
pnpm config set script-shell "/usr/bin/bash"
echo "::set-output name=pnpm_cache_dir::$(pnpm store path)"
- name: pnpm Cache
uses: actions/cache@v3
with:
path: ${{ steps.pnpm-setup.outputs.pnpm_cache_dir }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Install PNPM
uses: pnpm/action-setup@v4

- name: ESLint Cache
uses: actions/cache@v3
Expand Down
17 changes: 2 additions & 15 deletions .github/workflows/validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,21 +35,8 @@ jobs:
with:
node-version: ${{ matrix.node }}

- name: Enable Corepack
id: pnpm-setup
run: |
corepack enable
corepack prepare pnpm@latest --activate
pnpm config set script-shell "/usr/bin/bash"
echo "::set-output name=pnpm_cache_dir::$(pnpm store path)"
- name: pnpm Cache
uses: actions/cache@v3
with:
path: ${{ steps.pnpm-setup.outputs.pnpm_cache_dir }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Install PNPM
uses: pnpm/action-setup@v4

- name: ESLint Cache
uses: actions/cache@v3
Expand Down

0 comments on commit 9495177

Please sign in to comment.