Skip to content

Commit ae35673

Browse files
committed
Use custom Yarn cache directory
Makes it easier to upload and restore.
1 parent 23f142f commit ae35673

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

scripts/cacher.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ restore() {
2323
# the cache-upload directory will be uploaded as-is to the code-server bucket.
2424
package() {
2525
mkdir -p "cache-upload/cache/$1"
26-
tar czfv "cache-upload/cache/$1/$tar.tar.gz" node_modules source /usr/local/share/.cache/yarn
26+
tar czfv "cache-upload/cache/$1/$tar.tar.gz" node_modules source yarn-cache
2727
}
2828

2929
main() {

scripts/ci.bash

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ function main() {
2121
mv "vscode-$vscode_version-source" "source/vscode-$vscode_version-source"
2222
fi
2323

24+
YARN_CACHE_FOLDER="$(pwd)/yarn-cache"
25+
export YARN_CACHE_FOLDER
26+
2427
# Always minify and package on tags since that's when releases are pushed.
2528
if [[ -n ${DRONE_TAG:-} || -n ${TRAVIS_TAG:-} ]] ; then
2629
export MINIFY="true"

0 commit comments

Comments
 (0)