Skip to content

Commit 21b1504

Browse files
committed
ci: type check in ci and cd workflows
1 parent 7bdcb92 commit 21b1504

3 files changed

Lines changed: 4 additions & 2 deletions

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
run: npm ci --ignore-scripts
4040

4141
- name: Type check
42-
run: ./node_modules/.bin/tsc --noEmit
42+
run: npm run type-check
4343

4444
- name: Test
4545
run: npm test

.releaserc.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
[
66
"@semantic-release/exec",
77
{
8+
"verifyRelease": "npm run type-check",
89
"prepareCmd": "npm run build"
910
}
1011
],

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@
1717
"homepage": "https://github.com/EricCrosson/install-github-release-binary#readme",
1818
"scripts": {
1919
"build": "esbuild src/index.ts --bundle --minify --platform=node --target=node16 --outfile=dist/index.js",
20-
"test": "node --loader tsx --test test/test-*.ts"
20+
"test": "node --loader tsx --test test/test-*.ts",
21+
"type-check": "tsc --noEmit"
2122
},
2223
"dependencies": {
2324
"@actions/cache": "3.1.2",

0 commit comments

Comments
 (0)