Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Commit 08a0cff

Browse files
authored
add new command specifically to support rebuilding module (#333)
1 parent 079e6e9 commit 08a0cff

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

.github/workflows/codeql.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,9 @@ jobs:
3434

3535
# Setup dependencies (and build native modules from source)
3636
- name: Install dependencies
37-
run: npm install
37+
run: |
38+
npm install
39+
npm run build
3840
3941
# Run code analysis
4042
- name: Perform CodeQL Analysis

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@
3030
],
3131
"types": "./keytar.d.ts",
3232
"scripts": {
33-
"install": "prebuild-install || node-gyp rebuild",
33+
"install": "prebuild-install || npm run build",
34+
"build": "node-gyp rebuild",
3435
"lint": "npm run cpplint",
3536
"cpplint": "node-cpplint --filters legal-copyright,build-include,build-namespaces src/*.cc",
3637
"test": "npm run lint && npm rebuild && mocha --require babel-core/register spec/",

0 commit comments

Comments
 (0)