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 -1Showing whitespace changes
.gitlab-ci.yml+3 -1
@@ -39,7 +39,9 @@ publish-npm:
3939 npm_config_cache: .npm
4040 ST_NPM_REGISTRY: git.nas.home.htl-sky.net/api/v1/projects/permissionBRICK/SillyTavern/packages/npm/
4141 cache:
42- key: npm
42+ # 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
4345 paths:
4446 - .npm
4547 script:
.npmignore+3 -0
@@ -14,3 +14,6 @@ access.log
1414/public/scripts/extensions/third-party
1515/colab
1616.gemini
17+# CI npm cache lives in the workspace (npm_config_cache: .npm) — never pack it
18+/.npm
19+/.npmrc