Skip to content

Commit

Permalink
fix: 切换到 pnpm
Browse files Browse the repository at this point in the history
  • Loading branch information
CaoMeiYouRen committed Oct 14, 2023
1 parent f0d264d commit 28b68d6
Showing 1 changed file with 10 additions and 14 deletions.
24 changes: 10 additions & 14 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,16 @@ jobs:
name: Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Setup pnpm
uses: pnpm/action-setup@v2
with:
version: "latest"
- name: Setup Node.js@lts environment
uses: actions/setup-node@v2
uses: actions/setup-node@v3
with:
node-version: "lts/*"
- name: Cache multiple paths
uses: actions/cache@v2
with:
path: |
~/.npm
~/cache
!~/cache/exclude
**/node_modules
key: npm-${{ runner.os }}-${{ hashFiles('package.json') }}
- run: yarn
- run: npm run lint
- run: npm run build
cache: "npm"
- run: pnpm i --fix-lockfile
- run: pnpm run lint
- run: pnpm run build

0 comments on commit 28b68d6

Please sign in to comment.