Skip to content

Commit ad7dcc6

Browse files
fix: use the right package manager in ci automatically (#20)
* fix: use the right package manager in ci * feat: add test step placeholder --------- Co-authored-by: Nils <njonalik@protonmail.com>
1 parent 0e6d684 commit ad7dcc6

1 file changed

Lines changed: 29 additions & 3 deletions

File tree

src/steps/4.addCi.ts

Lines changed: 29 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,27 @@ on:
1212
branches: [ main ]
1313
1414
jobs:
15+
lint:
16+
17+
runs-on: ubuntu-latest
18+
19+
steps:
20+
- uses: actions/checkout@v3
21+
22+
- name: Use Node.js 16.14.2
23+
uses: actions/setup-node@v3
24+
with:
25+
node-version: 16.14.2
26+
27+
- name: Setup
28+
run: npm i -g @antfu/ni
29+
30+
- name: Install
31+
run: nci
32+
33+
- name: Lint
34+
run: nr lint
35+
1536
build:
1637
1738
runs-on: ubuntu-latest
@@ -24,11 +45,16 @@ jobs:
2445
with:
2546
node-version: 16.14.2
2647
27-
- run: npm ci
48+
- name: Setup
49+
run: npm i -g @antfu/ni
50+
51+
- name: Install
52+
run: nci
2853
29-
- run: npm run build
54+
- name: Build
55+
run: nr build
3056
31-
# TODO: Add more steps here, like "npm run lint" or "npm run test" as you add the tooling for it
57+
# TODO: Add more steps here, like "nr test" as you add the tooling for it
3258
`
3359

3460
export default async (preferences: Preferences, templateDir: string) => {

0 commit comments

Comments
 (0)