Skip to content

Commit a647493

Browse files
committed
chore: use corepack instead pnpm setup
1 parent 3b0352b commit a647493

File tree

2 files changed

+11
-9
lines changed

2 files changed

+11
-9
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,14 @@ jobs:
1515
steps:
1616
- uses: actions/checkout@v2
1717

18-
- name: Install pnpm
19-
uses: pnpm/action-setup@v2
20-
2118
- name: Set node
2219
uses: actions/setup-node@v2
2320
with:
2421
node-version: 16.x
2522
cache: pnpm
2623

24+
- run: corepack enable
25+
2726
- name: Setup
2827
run: npm i -g @antfu/ni
2928

@@ -45,15 +44,14 @@ jobs:
4544
steps:
4645
- uses: actions/checkout@v2
4746

48-
- name: Install pnpm
49-
uses: pnpm/action-setup@v2
50-
5147
- name: Set node version to ${{ matrix.node }}
5248
uses: actions/setup-node@v2
5349
with:
5450
node-version: ${{ matrix.node }}
5551
cache: pnpm
5652

53+
- run: corepack enable
54+
5755
- name: Setup
5856
run: npm i -g @antfu/ni
5957

.github/workflows/release.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,18 @@ jobs:
99
release:
1010
runs-on: ubuntu-latest
1111
steps:
12-
- uses: actions/checkout@v2
12+
- uses: actions/checkout@v3
1313
with:
1414
fetch-depth: 0
15-
- uses: actions/setup-node@v2
15+
16+
- uses: actions/setup-node@v3
1617
with:
1718
node-version: '14'
1819
registry-url: https://registry.npmjs.org/
19-
- run: npm i -g pnpm @antfu/ni
20+
21+
- run: corepack enable
22+
23+
- run: npm i -g @antfu/ni
2024
- run: nci
2125
- run: nr test --if-present
2226
- run: npm publish --access public

0 commit comments

Comments
 (0)