ci: exclude workspace npm cache from the package; bump cache key The .npm cache (npm_config_cache) was being packed into the tarball, and each publish attempt's own tarball landed back in the cache, doubling the package every run (160->320->640 MB until ERR_STRING_TOO_LONG).

39988ce4bbee8b6ba623fd3f86ca3add6bf2c4ca

permissionBRICK <christoph.ambrosch@live.at>

2 files changed, +6 -1Ignore whitespace
.gitlab-ci.yml+3 -1
@@ -39,7 +39,9 @@ publish-npm:
39 npm_config_cache: .npm39 npm_config_cache: .npm
40 ST_NPM_REGISTRY: git.nas.home.htl-sky.net/api/v1/projects/permissionBRICK/SillyTavern/packages/npm/40 ST_NPM_REGISTRY: git.nas.home.htl-sky.net/api/v1/projects/permissionBRICK/SillyTavern/packages/npm/
41 cache:41 cache:
42 key: npm42 # v2: the v1 cache accumulated each failed publish's own tarball
43 # (cacache doubles the package every run) — key bump discards it
44 key: npm-v2
43 paths:45 paths:
44 - .npm46 - .npm
45 script:47 script:
.npmignore+3 -0
@@ -14,3 +14,6 @@ access.log
14/public/scripts/extensions/third-party14/public/scripts/extensions/third-party
15/colab15/colab
16.gemini16.gemini
17# CI npm cache lives in the workspace (npm_config_cache: .npm) — never pack it
18/.npm
19/.npmrc