Skip to content

Commit 1618c29

Browse files
committed
Fix codeql custom build
1 parent 4561e56 commit 1618c29

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

.github/workflows/codeql-analysis.yml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,11 +60,17 @@ jobs:
6060
# If this step fails, then you should remove it and run the build manually (see below)
6161
- name: Autobuild
6262
uses: github/codeql-action/autobuild@v2
63-
64-
- name: Custom-Build
63+
64+
- name: Install Dependencies for custom build
65+
shell: bash
6566
run: |
66-
npm ci
67-
npm run compile
67+
sed -i '1i//npm.pkg.github.com/:_authToken=${NODE_AUTH_TOKEN}' .npmrc
68+
npm ci --no-audit
69+
env:
70+
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
71+
72+
- name: Custom build
73+
run: npm run compile
6874

6975
# ℹ️ Command-line programs to run using the OS shell.
7076
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun

0 commit comments

Comments
 (0)