mirror of
https://github.com/NeteaseCloudMusicApiEnhanced/api-enhanced.git
synced 2025-12-07 07:33:10 +00:00
ci(action): fix workflows which pnpm is not installed
This commit is contained in:
parent
55858d89d9
commit
8bb68accee
12
.github/workflows/node.js.yml
vendored
12
.github/workflows/node.js.yml
vendored
@ -24,10 +24,8 @@ jobs:
|
||||
# Use built-in package manager cache for pnpm
|
||||
cache: 'pnpm'
|
||||
cache-dependency-path: '**/pnpm-lock.yaml'
|
||||
- name: Setup pnpm
|
||||
uses: pnpm/action-setup@v2
|
||||
with:
|
||||
version: 8
|
||||
- name: Install pnpm
|
||||
run: npm install -g pnpm
|
||||
- name: Install dependencies (pnpm)
|
||||
run: pnpm install --frozen-lockfile
|
||||
- name: Test
|
||||
@ -50,10 +48,8 @@ jobs:
|
||||
node-version: ${{ matrix.node-version }}
|
||||
cache: 'pnpm'
|
||||
cache-dependency-path: '**/pnpm-lock.yaml'
|
||||
- name: Setup pnpm
|
||||
uses: pnpm/action-setup@v2
|
||||
with:
|
||||
version: 8
|
||||
- name: Install pnpm
|
||||
run: npm install -g pnpm
|
||||
- name: Install dependencies (pnpm)
|
||||
run: pnpm install --frozen-lockfile
|
||||
- name: Lint
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user