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).
| @@ -39,7 +39,9 @@ publish-npm: | ||
| 39 | 39 | npm_config_cache: .npm |
| 40 | 40 | ST_NPM_REGISTRY: git.nas.home.htl-sky.net/api/v1/projects/permissionBRICK/SillyTavern/packages/npm/ |
| 41 | 41 | 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 | |
| 43 | 45 | paths: |
| 44 | 46 | - .npm |
| 45 | 47 | script: |
| @@ -14,3 +14,6 @@ access.log | ||
| 14 | 14 | /public/scripts/extensions/third-party |
| 15 | 15 | /colab |
| 16 | 16 | .gemini |
| 17 | +# CI npm cache lives in the workspace (npm_config_cache: .npm) — never pack it | |
| 18 | +/.npm | |
| 19 | +/.npmrc | |