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 4, 2025
1 parent b9df6ff commit be365a1
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 10 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

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

- name: Setup node
uses: actions/setup-node@v4
Expand All @@ -43,8 +43,8 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

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

- name: Set node version to ${{ matrix.node }}
uses: actions/setup-node@v4
Expand Down
14 changes: 9 additions & 5 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,23 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

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

- name: Set node
uses: actions/setup-node@v4
with:
node-version: lts/*
- run: corepack enable
- run: npm i -g @antfu/ni
- run: nci
cache: pnpm

- run: pnpm i

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

- name: Build docs
run: nr docs:build
run: pnpm run docs:build
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/publish-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,10 @@ jobs:

steps:
- uses: actions/checkout@v4
- run: corepack enable

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

- uses: actions/setup-node@v4
with:
node-version: lts/*
Expand Down

0 comments on commit be365a1

Please sign in to comment.