Skip to content

Commit 198d0cd

Browse files
committed
ci/github-script: add npm scripts
Allows running `npm run typecheck` or `npm test`.
1 parent 3d17eab commit 198d0cd

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

‎.github/workflows/check.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,8 +159,8 @@ jobs:
159159
run: ln -s "$PWD/trusted/ci/github-script/node_modules" untrusted/ci/github-script/node_modules
160160
working-directory: nixpkgs
161161

162-
- name: Type-check ci/github-script
163-
run: tsc --build
162+
- name: Check ci/github-script
163+
run: npm test
164164
working-directory: nixpkgs/untrusted/ci/github-script
165165

166166
owners:

‎ci/github-script/package.json‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
{
22
"private": true,
3+
"scripts": {
4+
"typecheck": "tsc --build",
5+
"test": "npm run typecheck"
6+
},
37
"//": [
48
"Keep `@actions/core` and `@actions/github` in sync with",
59
"https://github.com/actions/github-script/blob/main/package.json."

0 commit comments

Comments
 (0)