Skip to content

Commit

Permalink
ci: remove @antfu/ni
Browse files Browse the repository at this point in the history
  • Loading branch information
sxzz committed Feb 5, 2025
1 parent e0cbd5c commit c83939f
Show file tree
Hide file tree
Showing 2 changed files with 20 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
32 changes: 18 additions & 14 deletions .github/workflows/unit-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,24 +10,26 @@ 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

- name: Typecheck
run: nr typecheck
run: pnpm typecheck

test:
runs-on: ${{ matrix.os }}
Expand All @@ -39,21 +41,23 @@ jobs:
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 c83939f

Please sign in to comment.