Skip to content

Commit

Permalink
chore(ci): Add -e .yarn-cache to GIT_CLEAN_FLAGS
Browse files Browse the repository at this point in the history
  • Loading branch information
ondrejsika committed Dec 29, 2021
1 parent cb1f569 commit 9d2d240
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ stages:
- pipeline

variables:
GIT_CLEAN_FLAGS: -ffdx -e node_modules
GIT_CLEAN_FLAGS: -ffdx -e node_modules -e .yarn-cache

generate:
stage: generate
Expand Down
2 changes: 1 addition & 1 deletion generate-gitlab-ci-statica.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def gen_deps(deps, name):
],
"image": "sikalabs/ci-node",
"variables": {
"GIT_CLEAN_FLAGS": "-ffdx -e node_modules",
"GIT_CLEAN_FLAGS": "-ffdx -e node_modules -e .yarn-cache",
},
"start": {
"stage": "start",
Expand Down
4 changes: 2 additions & 2 deletions generate-gitlab-ci.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@
variables:
DOCKER_BUILDKIT: '1'
GIT_CLEAN_FLAGS: "-ffdx -e node_modules"
GIT_CLEAN_FLAGS: "-ffdx -e node_modules -e .yarn-cache"
start:
stage: start
Expand Down Expand Up @@ -153,7 +153,7 @@ def generate_dependencies(site):
image: sikalabs/ci-node
needs: []
variables:
GIT_CLEAN_FLAGS: none
GIT_CLEAN_FLAGS: -ffdx -e node_modules -e .yarn-cache
script:
- yarn --cache-folder .yarn-cache
- rm -rf packages/%(site)s/out
Expand Down

0 comments on commit 9d2d240

Please sign in to comment.