Skip to content

Commit

Permalink
ci: remove corepack & @antfu/ni
Browse files Browse the repository at this point in the history
  • Loading branch information
sxzz committed Feb 6, 2025
1 parent 6de3911 commit c57b642
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 15 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/release-continuous.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4

- run: corepack enable
- name: Install pnpm
uses: pnpm/action-setup@v4.0.0

- uses: actions/setup-node@v4
with:
node-version: lts/*
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,13 @@ jobs:
- run: npx changelogithub
continue-on-error: true
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Install Dependencies
run: pnpm i

- name: Publish to NPM
run: pnpm -r publish --access public --no-git-checks
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_PUBLISH_TOKEN}}
NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}
NPM_CONFIG_PROVENANCE: true
28 changes: 16 additions & 12 deletions .github/workflows/unit-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,23 +13,26 @@ jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Checkout code
uses: actions/checkout@v4

- name: Install pnpm
uses: pnpm/action-setup@v4.0.0

- 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: Type Check
run: nr typecheck
run: pnpm run typecheck

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

test:
strategy:
Expand All @@ -42,19 +45,20 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Install pnpm
uses: pnpm/action-setup@v4.0.0

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

- 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: Build Examples
run: pnpm run -r --parallel build
Expand Down

0 comments on commit c57b642

Please sign in to comment.