diff --git a/.github/workflows/prod-test.yml b/.github/workflows/prod-test.yml index 230bf975b..b7f9e121b 100644 --- a/.github/workflows/prod-test.yml +++ b/.github/workflows/prod-test.yml @@ -26,24 +26,21 @@ jobs: run: yarn install --frozen-lockfile - name: Cache Build Results - # Prevent error on re-run - # https://github.com/actions/cache/issues/107#issuecomment-556037278 - if: github.event_name == 'push' || github.event_name == 'pull_request' id: build-cache - uses: actions/cache@v1 + uses: actions/cache@v2 with: path: .cache - key: v1-build-cache-${{ hashFiles('yarn.lock') }}-${{ hashFiles('scripts/build/**/*') }}-${{ github.ref }}- + key: v2-build-cache-${{ hashFiles('yarn.lock') }}-${{ hashFiles('scripts/build/**/*') }}-${{ github.ref }}- restore-keys: | - 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- + v2-build-cache-${{ hashFiles('yarn.lock') }}-${{ hashFiles('scripts/build/**/*') }}-${{ github.ref }}- + v2-build-cache-${{ hashFiles('yarn.lock') }}-${{ hashFiles('scripts/build/**/*') }}-refs/heads/${{ github.base_ref }}- + v2-build-cache-${{ hashFiles('yarn.lock') }}-${{ hashFiles('scripts/build/**/*') }}-refs/heads/master- - name: Build Package run: yarn build - name: Upload Artifact - uses: actions/upload-artifact@v1 + uses: actions/upload-artifact@v2 with: name: dist path: dist @@ -67,7 +64,7 @@ jobs: run: yarn install --frozen-lockfile - name: Download Artifact - uses: actions/download-artifact@v1 + uses: actions/download-artifact@v2 with: name: dist path: dist @@ -110,7 +107,7 @@ jobs: run: yarn install --frozen-lockfile - name: Download Artifact - uses: actions/download-artifact@v1 + uses: actions/download-artifact@v2 with: name: dist path: dist