File tree 6 files changed +33
-6
lines changed
6 files changed +33
-6
lines changed Original file line number Diff line number Diff line change 42
42
- name : Install dependencies
43
43
run : npm ci --no-audit
44
44
- name : Build package
45
- run : npm run build
45
+ run : npm run build:ci
46
46
- run : npm run e2e
47
47
- name : Notify Slack
48
48
uses : 8398a7/action-slack@v3
92
92
- name : Install dependencies
93
93
run : npm ci --no-audit
94
94
- name : Build package
95
- run : npm run build
95
+ run : npm run build:ci
96
96
- run : npm run e2e
97
97
- name : Notify Slack
98
98
uses : 8398a7/action-slack@v3
Original file line number Diff line number Diff line change 55
55
- name : Install core dependencies
56
56
run : npm ci --no-audit
57
57
- name : Build package
58
- run : npm run build
58
+ run : npm run build:ci
59
59
- name : Generate self-signed certificates
60
60
run : npm run certs
61
61
shell : bash
@@ -142,7 +142,7 @@ jobs:
142
142
- name : Install core dependencies
143
143
run : npm ci --no-audit
144
144
- name : Build package
145
- run : npm run build
145
+ run : npm run build:ci
146
146
- name : Generate self-signed certificates
147
147
run : npm run certs
148
148
shell : bash
Original file line number Diff line number Diff line change 23
23
run : npm ci --no-audit
24
24
# Almost not needed, but a single file in `scripts/` imports built code
25
25
- name : Build package
26
- run : npm run build
26
+ run : npm run build:ci
27
27
- name : Run lint
28
28
run : npm run lint
Original file line number Diff line number Diff line change
1
+ name : Typecheck
2
+
3
+ on :
4
+ push :
5
+ branches : [main]
6
+ pull_request :
7
+ branches : [main]
8
+
9
+ jobs :
10
+ typecheck :
11
+ name : Typecheck
12
+ if : " ${{ !startsWith(github.head_ref, 'release-') }}"
13
+ runs-on : ubuntu-latest
14
+ steps :
15
+ - name : Git checkout
16
+ uses : actions/checkout@v4
17
+ - name : Set up Node.js
18
+ uses : actions/setup-node@v4
19
+ with :
20
+ node-version : 22
21
+ cache : npm
22
+ - name : Install core dependencies
23
+ run : npm ci --no-audit
24
+ - name : Run typecheck
25
+ run : npm run typecheck
Original file line number Diff line number Diff line change 31
31
- name : Install core dependencies
32
32
run : npm ci --no-audit
33
33
- name : Build package
34
- run : npm run build
34
+ run : npm run build:ci
35
35
- name : Run unit tests
36
36
uses : nick-fields/retry@v3
37
37
with :
Original file line number Diff line number Diff line change 32
32
},
33
33
"scripts" : {
34
34
"build" : " tsc" ,
35
+ "build:ci" : " tsc --noCheck" ,
35
36
"certs" : " openssl req -x509 -out localhost.crt -keyout localhost.key -newkey rsa:2048 -nodes -sha256 -subj \" /CN=localhost\" -extensions EXT -config certconf" ,
36
37
"dev" : " tsc --watch" ,
37
38
"e2e" : " node ./tools/e2e/run.js" ,
56
57
"test:init:hugo-deps" : " npm ci --prefix tests/integration/__fixtures__/hugo-site --no-audit" ,
57
58
"test:init:monorepo-deps" : " cd tests/integration/__fixtures__/monorepo && pnpm install --frozen-lockfile" ,
58
59
"test:init:next-deps" : " npm ci --prefix tests/integration/__fixtures__/next-app-without-config --no-audit && npm ci --prefix tests/integration/__fixtures__/next-app --no-audit" ,
60
+ "typecheck" : " tsc --noEmit" ,
59
61
"watch" : " c8 --reporter=lcov vitest --watch"
60
62
},
61
63
"config" : {
You can’t perform that action at this time.
0 commit comments