Skip to content

Commit fd075ea

Browse files
committed
ci: always cache even for failed jobs
1 parent 9c7cec2 commit fd075ea

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.gitlab-ci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ default:
2626
# Cached directories shared between jobs & pipelines per-branch per-runner
2727
cache:
2828
key: $CI_COMMIT_REF_SLUG
29+
# Preserve cache even if job fails
30+
when: 'always'
2931
paths:
3032
- ./tmp/npm/
3133
# Homebrew cache is only used by the macos runner

0 commit comments

Comments
 (0)