@catladder/pipeline 1.77.2 → 1.78.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/build/node/cache.js +2 -0
- package/dist/bundles/catladder-gitlab/index.js +1 -1
- package/dist/constants.js +1 -1
- package/dist/deploy/kubernetes/kubeValues.d.ts +13 -10
- package/dist/deploy/kubernetes/kubeValues.js +47 -2
- package/dist/deploy/kubernetes/processSecretsAsFiles.d.ts +2 -2
- package/dist/deploy/types/kubernetes.d.ts +2 -2
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/examples/__snapshots__/kubernetes-with-jobs.ts.snap +3 -12
- package/examples/kubernetes-with-jobs.ts +11 -0
- package/package.json +1 -1
- package/src/build/node/cache.ts +2 -0
- package/src/deploy/kubernetes/kubeValues.ts +14 -2
- package/src/deploy/types/kubernetes.ts +19 -17
package/dist/build/node/cache.js
CHANGED
|
@@ -63,6 +63,8 @@ var getNodeModulesCache = function (context, policy) {
|
|
|
63
63
|
policy = "pull-push";
|
|
64
64
|
}
|
|
65
65
|
var componentIsInWorkspace = (_a = context.packageManagerInfo) === null || _a === void 0 ? void 0 : _a.componentIsInWorkspace;
|
|
66
|
+
// We intentionally do not use the contents of yarn.lock as a cache key, as yarn install should always guarantee that the files are updated, but it can still use part of the cache if not all packages are up-to-date.
|
|
67
|
+
// It would slow down all pipelines whenever one adds a new dependency as it will need to download all node_modules again.
|
|
66
68
|
return [{
|
|
67
69
|
// if component is in a shared workspace, use workspace cache. use individual cache else
|
|
68
70
|
key: componentIsInWorkspace ? "node-modules-workspace" : (0, slugify_1["default"])(context.componentConfig.dir) + "-node-modules",
|