Skip to content

Commit

Permalink
fix: fix failed CI
Browse files Browse the repository at this point in the history
  • Loading branch information
liruifengv committed Feb 29, 2024
1 parent fc81fe6 commit b5186f4
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 12 deletions.
17 changes: 10 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,23 +12,26 @@ jobs:
uses: actions/setup-node@v3
with:
node-version: '20.x'
- name: Install PNPM
run: npm install -g pnpm

- name: Setup PNPM
uses: pnpm/action-setup@v3
with:
version: 8

- name: Install deps and build (with cache)
run: pnpm install
run: pnpm install --no-frozen-lockfile

- name: Dev
run: npm run build
run: pnpm run build

- name: Test
run: npm run test
run: pnpm run test

- name: Coverage
run: npm run coverage
run: pnpm run coverage

- name: Build
run: npm run build
run: pnpm run build

- name: Upload minecat coverage reports to Codecov
uses: codecov/codecov-action@v3
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,20 +15,20 @@ jobs:
if: ${{ github.repository_owner == 'npmstudy' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Setup PNPM
uses: pnpm/action-setup@v2.2.1
uses: pnpm/action-setup@v3
with:
version: ^7.0
version: 8

- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 16
node-version: '20.x'
cache: "pnpm"

- name: Install dependencies
run: pnpm install
run: pnpm install --no-frozen-lockfile

- name: Build Packages
run: pnpm run build
Expand Down

0 comments on commit b5186f4

Please sign in to comment.