Skip to content

Commit

Permalink
ci: remove corepack
Browse files Browse the repository at this point in the history
  • Loading branch information
sxzz committed Feb 5, 2025
1 parent 2e234bb commit 50a8880
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 16 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Setup pnpm
run: corepack enable
- name: Install pnpm
uses: pnpm/[email protected]

- name: Set node
uses: actions/setup-node@v4
Expand Down
34 changes: 20 additions & 14 deletions .github/workflows/unit-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,45 +10,51 @@ jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Checkout
uses: actions/checkout@v4

- name: Install pnpm
uses: pnpm/[email protected]

- name: Set node
uses: actions/setup-node@v4
with:
node-version: lts/*

- name: Setup
run: npm i -g @antfu/ni
cache: pnpm

- name: Install
run: nci
run: pnpm i

- name: Lint
run: nr lint
run: pnpm lint

test:
runs-on: ${{ matrix.os }}

strategy:
matrix:
os: [ubuntu-latest, windows-latest]
node: [18, 20]
node: [18, 20, 22]
fail-fast: false

steps:
- uses: actions/checkout@v4
- name: Checkout
uses: actions/checkout@v4

- name: Install pnpm
uses: pnpm/[email protected]

- name: Set node ${{ matrix.node }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}

- name: Setup
run: npm i -g @antfu/ni
cache: pnpm

- name: Install
run: nci
run: pnpm i

- name: Build
run: nr build
run: pnpm run build

- name: Test
run: nr test
run: pnpm run test

0 comments on commit 50a8880

Please sign in to comment.