diff --git a/.github/workflows/prod-test.yml b/.github/workflows/prod-test.yml index 3f3ec0174..230bf975b 100644 --- a/.github/workflows/prod-test.yml +++ b/.github/workflows/prod-test.yml @@ -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 diff --git a/scripts/build/build.js b/scripts/build/build.js index 8797b0816..dedad3536 100644 --- a/scripts/build/build.js +++ b/scripts/build/build.js @@ -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 ");