Update CI cache key (#8236)
* Update CI cache key * Update build script, expect missing cache
This commit is contained in:
1 parent
736db9b0db
commit
01c2015f72
2 files changed
+5
-5
No files matched your search
@@ -33,11 +33,11 @@ jobs:
|
||||
uses: actions/cache@v1
|
||||
with:
|
||||
path: .cache
|
||||
key: v1-build-cache-${{ hashFiles('yarn.lock') }}-${{ github.ref }}-
|
||||
key: v1-build-cache-${{ hashFiles('yarn.lock') }}-${{ hashFiles('scripts/build/**/*') }}-${{ github.ref }}-
|
||||
restore-keys: |
|
||||
v1-build-cache-${{ hashFiles('yarn.lock') }}-${{ github.ref }}-
|
||||
v1-build-cache-${{ hashFiles('yarn.lock') }}-refs/heads/${{ github.base_ref }}-
|
||||
v1-build-cache-${{ hashFiles('yarn.lock') }}-refs/heads/master-
|
||||
v1-build-cache-${{ hashFiles('yarn.lock') }}-${{ hashFiles('scripts/build/**/*') }}-${{ github.ref }}-
|
||||
v1-build-cache-${{ hashFiles('yarn.lock') }}-${{ hashFiles('scripts/build/**/*') }}-refs/heads/${{ github.base_ref }}-
|
||||
v1-build-cache-${{ hashFiles('yarn.lock') }}-${{ hashFiles('scripts/build/**/*') }}-refs/heads/master-
|
||||
|
||||
- name: Build Package
|
||||
run: yarn build
|
||||
|
||||
@@ -21,7 +21,7 @@ process.on("unhandledRejection", (err) => {
|
||||
process.exit(1);
|
||||
});
|
||||
|
||||
const CACHE_VERSION = "v22"; // This need update when updating build scripts
|
||||
const CACHE_VERSION = "v23"; // This need update when updating build scripts
|
||||
const CACHED = chalk.bgYellow.black(" CACHED ");
|
||||
const OK = chalk.bgGreen.black(" DONE ");
|
||||
const FAIL = chalk.bgRed.black(" FAIL ");
|
||||
|
||||
Reference in new issue
Block a user