Skip to content

Commit d4d6566

Browse files
committed
ci: update
1 parent fc8ae27 commit d4d6566

File tree

2 files changed

+16
-24
lines changed

2 files changed

+16
-24
lines changed

.github/workflows/ci.yml

Lines changed: 15 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -14,45 +14,37 @@ jobs:
1414
runs-on: ubuntu-latest
1515
steps:
1616
- uses: actions/checkout@v4
17-
- name: Set node
18-
uses: actions/setup-node@v4
17+
- uses: pnpm/action-setup@v4
18+
- uses: actions/setup-node@v4
1919
with:
20-
node-version: '>=20'
21-
cache: 'pnpm'
22-
23-
- name: Setup
24-
run: npm i -g @antfu/ni
25-
26-
- name: Install
27-
run: nci
20+
node-version: lts/*
21+
cache: pnpm
2822

29-
- name: Lint
30-
run: nr lint
31-
32-
- name: Build
33-
run: nr build
23+
- run: pnpm install --frozen-lockfile
24+
- run: pnpm run lint
25+
- run: pnpm run build
3426

3527
test:
3628
runs-on: ${{ matrix.os }}
3729

3830
strategy:
3931
matrix:
40-
node: [18.x, 20.x]
32+
node: [18.x, lts/*]
4133
os: [ubuntu-latest, windows-latest, macos-latest]
4234
fail-fast: false
4335

4436
steps:
4537
- uses: actions/checkout@v4
38+
- uses: pnpm/action-setup@v4
4639
- name: Set node ${{ matrix.node }}
4740
uses: actions/setup-node@v4
4841
with:
4942
node-version: ${{ matrix.node }}
43+
cache: pnpm
5044

51-
- name: Setup
52-
run: npm i -g @antfu/ni
53-
54-
- name: Install
55-
run: nci
45+
- run: pnpm install --frozen-lockfile
46+
- run: pnpm run test
5647

57-
- name: Test
58-
run: nr test
48+
- uses: codecov/codecov-action@v4
49+
with:
50+
token: ${{ secrets.CODECOV_TOKEN }}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "unplugin-vue-router",
33
"version": "0.8.6",
4-
"packageManager": "pnpm@9.0.6",
4+
"packageManager": "pnpm@9.1.1",
55
"description": "File based typed routing for Vue Router",
66
"keywords": [
77
"vue-router",

0 commit comments

Comments
 (0)