refactor: streamline pnpm installation in CI configuration
This commit is contained in:
12
.github/workflows/dev.yml
vendored
12
.github/workflows/dev.yml
vendored
@@ -68,6 +68,12 @@ jobs:
|
||||
cache-all-crates: true
|
||||
shared-key: autobuild-shared
|
||||
|
||||
- uses: pnpm/action-setup@v4
|
||||
name: Install pnpm
|
||||
if: github.event.inputs[matrix.input] == 'true'
|
||||
with:
|
||||
run_install: false
|
||||
|
||||
- name: Install Node
|
||||
if: github.event.inputs[matrix.input] == 'true'
|
||||
uses: actions/setup-node@v4
|
||||
@@ -75,12 +81,6 @@ jobs:
|
||||
node-version: "20"
|
||||
cache: "pnpm"
|
||||
|
||||
- uses: pnpm/action-setup@v4
|
||||
name: Install pnpm
|
||||
if: github.event.inputs[matrix.input] == 'true'
|
||||
with:
|
||||
run_install: false
|
||||
|
||||
- name: Pnpm install and check
|
||||
if: github.event.inputs[matrix.input] == 'true'
|
||||
run: |
|
||||
|
||||
Reference in New Issue
Block a user