repositories / will

will

owned by bugabinga

ci: cache npm downloads across runs

f524f463be065706168252ea162df6da559dc4ad

Oliver Jan Krylow <oliver@bugabinga.net> ·

SSH signature · not checked

Browse filesCompare with HEAD

Changed files (3)

+24 / −3 text lines

Diff layout

.ci/browser.kdl

Modified

+8 / −1 text lines

1010 include "src/service/**"
1111 }
1212 }
13 run "npm ci"
13 cache "npm" {
14 path ".npm-cache"
15 key {
16 file "package-lock.json"
17 }
18 }
19 run "export NPM_CONFIG_CACHE=\"$PWD/.npm-cache\""
20 run "npm ci --prefer-offline"
1421 run "npm run build"
1522 run "npm run test:browser"

.ci/canary.kdl

Modified

+8 / −1 text lines

33job "canary" {
44 image "docker.io/library/node:26-slim"
55 secret "ZAI_API_KEY" env="ZAI_API_KEY"
6 run "npm ci"
6 cache "npm" {
7 path ".npm-cache"
8 key {
9 file "package-lock.json"
10 }
11 }
12 run "export NPM_CONFIG_CACHE=\"$PWD/.npm-cache\""
13 run "npm ci --prefer-offline"
714 run "npm run canary"
815}

.ci/validate.kdl

Modified

+8 / −1 text lines

66 branch "feature/**"
77 }
88 }
9 run "npm ci"
9 cache "npm" {
10 path ".npm-cache"
11 key {
12 file "package-lock.json"
13 }
14 }
15 run "export NPM_CONFIG_CACHE=\"$PWD/.npm-cache\""
16 run "npm ci --prefer-offline"
1017 run "npm run check"
1118 run "npm test"
1219 run "npm run coverage"