Skip to content

Commit d9f51f9

Browse files
committed
ci: install deps with forzen-lockfile
1 parent 50305f3 commit d9f51f9

File tree

2 files changed

+18
-5
lines changed

2 files changed

+18
-5
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,19 @@ jobs:
2727
fetch-depth: 0
2828

2929
- uses: pnpm/action-setup@v4
30+
3031
- name: Use Node.js v${{ matrix.node-version }}
3132
uses: actions/setup-node@v4
3233
with:
3334
node-version: ${{ matrix.node-version }}
3435
registry-url: https://registry.npmjs.org/
3536
cache: pnpm
3637

38+
- name: Setup ni
39+
run: npm i -g @antfu/ni
40+
3741
- name: Install dependencies
38-
run: pnpm install
42+
run: nci
3943

4044
- name: Test
41-
run: npm run test
45+
run: nr test

.github/workflows/release.yml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,22 +18,31 @@ jobs:
1818
- uses: actions/checkout@v4
1919
with:
2020
fetch-depth: 0
21+
2122
- uses: pnpm/action-setup@v4
23+
2224
- name: Use Node.js v${{ matrix.node-version }}
2325
uses: actions/setup-node@v4
2426
with:
2527
node-version: ${{ matrix.node-version }}
2628
registry-url: https://registry.npmjs.org/
2729
cache: pnpm
30+
31+
- name: Setup ni
32+
run: npm i -g @antfu/ni
33+
2834
- name: Install dependencies
29-
run: pnpm install
35+
run: nci
36+
3037
- name: Build
31-
run: npm run build
38+
run: nr build
39+
3240
- name: Publish package
3341
run: npm publish
3442
env:
3543
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
44+
3645
- name: Generate changelog
37-
run: npx changelogithub
46+
run: nlx changelogithub
3847
env:
3948
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

0 commit comments

Comments
 (0)