Skip to content

Commit f48427d

Browse files
authored
Fix download-artifact script - use github token for all Github API calls (#1647)
- package download-artifact using node 16 (better performance) - add brief comments to download-artifact.ts to satisy linting rules
1 parent a7b3727 commit f48427d

File tree

4 files changed

+61
-1038
lines changed

4 files changed

+61
-1038
lines changed

.gitignore

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ docs/zap-schema.dot
1111
.quasar
1212
/dist
1313

14-
#We don't save the coverage within
15-
#this repo.
14+
#We don't save the coverage within
15+
#this repo.
1616
test/jest/coverage
1717
test/jest/__tests__/data/zap.sqlite
1818
test/.zap
@@ -86,6 +86,9 @@ reports
8686
# clinic.js performance profiling data
8787
.clinic
8888

89+
# Compiled JavaScript output from TypeScript source
90+
src-script/download-artifact.js
91+
8992
# Downloaded artifacts from Nexus / Github / etc via download-artifact script
9093
artifacts
9194
**/zap-*.zip

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"bin": "dist/src-electron/main-process/main.js",
2121
"scripts": {
2222
"download-artifact": "npx ts-node src-script/download-artifact.ts",
23-
"pkg:download-artifact": "npx pkg src-script/download-artifact.js -t node18-linux-x64,node18-linux-arm64,node18-macos-x64,node18-win-x64 --output dist/download-artifact --compress GZip",
23+
"pkg:download-artifact": "npx pkg src-script/download-artifact.js -t node16-linux-x64,node16-linux-arm64,node16-macos-x64,node16-win-x64 --output dist/download-artifact --compress GZip",
2424
"compile:download-artifact": "tsc src-script/download-artifact.ts --esModuleInterop",
2525
"test:download-artifact": "npx jest --collectCoverage=false ./test/download-artifact.test.js --testPathIgnorePatterns=[]",
2626
"lic": "node src-script/license-check.js --production",

0 commit comments

Comments
 (0)