Use custom Yarn cache directory

Makes it easier to upload and restore.
This commit is contained in:
Asher
2020-01-16 15:39:44 -06:00
parent 23f142fdc6
commit ae35673489
2 changed files with 4 additions and 1 deletions

View File

@ -23,7 +23,7 @@ restore() {
# the cache-upload directory will be uploaded as-is to the code-server bucket.
package() {
mkdir -p "cache-upload/cache/$1"
tar czfv "cache-upload/cache/$1/$tar.tar.gz" node_modules source /usr/local/share/.cache/yarn
tar czfv "cache-upload/cache/$1/$tar.tar.gz" node_modules source yarn-cache
}
main() {