Improve turbo cache (#2178)

* chore(action): regenerate turbo cache

* chore(action): fix build

* chore: add support for [force-ci] option

* [force-ci]

* fix: force-ci support

* [force-ci]

* chore: debug commit message

* chore: debug commit message

* fix: remove force-ci support

* [force-ci]

* chore(actions): fix hash key

* chore(actions): fix hash key?
This commit is contained in:
Nate Moore 2021-12-10 00:11:20 -06:00 committed by GitHub
parent 16484f603d
commit 80c65e9497
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -87,11 +87,7 @@ jobs:
uses: actions/cache@v2
with:
path: "**/.turbo"
key: "turbo-${{ github.ref }}-${{ hashFiles('packages/**/src/**') }}-${{ github.sha }}"
restore-keys: |
turbo-${{ github.ref }}-${{ hashFiles('packages/**/src/**') }}-${{ github.sha }}
turbo-${{ github.ref }}-${{ hashFiles('packages/**/src/**') }}-
turbo-${{ github.ref }}-
key: turbo-${{ hashFiles('.github/workflows/ci.yml') }}-${{ github.ref }}
- name: Install NPM Dependencies
run: yarn install --prefer-offline --frozen-lockfile --ignore-engines --registry https://registry.npmjs.org --network-timeout 300000
@ -145,11 +141,7 @@ jobs:
uses: actions/cache@v2
with:
path: "**/.turbo"
key: "turbo-${{ github.ref }}-${{ hashFiles('packages/**/src/**') }}-${{ github.sha }}"
restore-keys: |
turbo-${{ github.ref }}-${{ hashFiles('packages/**/src/**') }}-${{ github.sha }}
turbo-${{ github.ref }}-${{ hashFiles('packages/**/src/**') }}-
turbo-${{ github.ref }}-
key: turbo-${{ hashFiles('.github/workflows/ci.yml') }}-${{ github.ref }}
- name: Install NPM Dependencies
run: yarn install --prefer-offline --frozen-lockfile --ignore-engines --registry https://registry.npmjs.org --network-timeout 300000
@ -193,11 +185,7 @@ jobs:
uses: actions/cache@v2
with:
path: "**/.turbo"
key: "turbo-${{ github.ref }}-${{ hashFiles('packages/**/src/**') }}-${{ github.sha }}"
restore-keys: |
turbo-${{ github.ref }}-${{ hashFiles('packages/**/src/**') }}-${{ github.sha }}
turbo-${{ github.ref }}-${{ hashFiles('packages/**/src/**') }}-
turbo-${{ github.ref }}-
key: turbo-${{ hashFiles('.github/workflows/ci.yml') }}-${{ github.ref }}
- name: Install NPM Dependencies
run: yarn install --prefer-offline --frozen-lockfile --ignore-engines --registry https://registry.npmjs.org --network-timeout 300000
@ -236,11 +224,7 @@ jobs:
uses: actions/cache@v2
with:
path: "**/.turbo"
key: "turbo-${{ github.ref }}-${{ hashFiles('packages/**/src/**') }}-${{ github.sha }}"
restore-keys: |
turbo-${{ github.ref }}-${{ hashFiles('packages/**/src/**') }}-${{ github.sha }}
turbo-${{ github.ref }}-${{ hashFiles('packages/**/src/**') }}-
turbo-${{ github.ref }}-
key: turbo-${{ hashFiles('.github/workflows/ci.yml') }}-${{ github.ref }}
- name: Install NPM Dependencies
run: yarn install --prefer-offline --frozen-lockfile --ignore-engines --registry https://registry.npmjs.org --network-timeout 300000