diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 3fb7b382e575e702adcca92b8897e599f412834e..29773ea9c69af1f00d1d21581575a4468ed67836 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -23,7 +23,9 @@ install_dependencies: paths: - .pnp.* - .yarn/ + - .yarnCache/ script: + - yarn config set cacheFolder "./.yarnCache" - yarn install --immutable --check-cache - yarn config get cacheFolder - ls $(yarn config get cacheFolder) @@ -41,10 +43,13 @@ test: paths: - .pnp.* - .yarn/ + - .yarnCache/ policy: pull image: name: 'node:18.16.0' script: + - yarn config get cacheFolder + - yarn config set cacheFolder "./.yarnCache" - yarn config get cacheFolder - ls $(yarn config get cacheFolder) - yarn test @@ -56,10 +61,12 @@ build: paths: - .pnp.* - .yarn/ + - .yarnCache/ policy: pull image: name: 'node:18.16.0' script: + - yarn config set cacheFolder "./.yarnCache" - yarn build artifacts: paths: