0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2024-12-16 21:46:22 -05:00

Update turbo cache (#2184)

* chore(actions): update cache strategy

* chore: force ci
This commit is contained in:
Nate Moore 2021-12-13 13:55:35 -06:00 committed by GitHub
parent fbbeee41aa
commit 5258316c4f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -83,11 +83,15 @@ jobs:
node-version: 16
cache: 'yarn'
- name: Cache Turbo
- name: Cache Node Modules
id: cache-node
uses: actions/cache@v2
with:
path: "**/.turbo"
key: turbo-${{ hashFiles('.github/workflows/ci.yml') }}-${{ github.ref }}
path: "**/node_modules"
key: cache-node_modules-${{ hashFiles('**/yarn.lock') }}-${{ github.run_id }}
restore-keys: |
cache-node_modules-${{ hashFiles('**/yarn.lock') }}-${{ github.run_id }}
cache-node_modules-${{ hashFiles('**/yarn.lock') }}-
- name: Install NPM Dependencies
run: yarn install --prefer-offline --frozen-lockfile --ignore-engines --registry https://registry.npmjs.org --network-timeout 300000
@ -95,7 +99,7 @@ jobs:
CI: true
- name: Build Packages
run: yarn build
run: yarn build --force
- name: Upload Package Artifacts
uses: actions/upload-artifact@v2
@ -137,11 +141,12 @@ jobs:
- name: Extract Artifacts
run: ./.github/extract-artifacts.sh
- name: Cache Turbo
- name: Cache Node Modules
id: cache-node
uses: actions/cache@v2
with:
path: "**/.turbo"
key: turbo-${{ hashFiles('.github/workflows/ci.yml') }}-${{ github.ref }}
path: "**/node_modules"
key: cache-node_modules-${{ hashFiles('**/yarn.lock') }}-${{ github.run_id }}
- name: Install NPM Dependencies
run: yarn install --prefer-offline --frozen-lockfile --ignore-engines --registry https://registry.npmjs.org --network-timeout 300000
@ -181,11 +186,12 @@ jobs:
- name: Extract Artifacts
run: ./.github/extract-artifacts.sh
- name: Cache Turbo
- name: Cache Node Modules
id: cache-node
uses: actions/cache@v2
with:
path: "**/.turbo"
key: turbo-${{ hashFiles('.github/workflows/ci.yml') }}-${{ github.ref }}
path: "**/node_modules"
key: cache-node_modules-${{ hashFiles('**/yarn.lock') }}-${{ github.run_id }}
- name: Install NPM Dependencies
run: yarn install --prefer-offline --frozen-lockfile --ignore-engines --registry https://registry.npmjs.org --network-timeout 300000
@ -220,11 +226,12 @@ jobs:
- name: Extract Artifacts
run: ./.github/extract-artifacts.sh
- name: Cache Turbo
- name: Cache Node Modules
id: cache-node
uses: actions/cache@v2
with:
path: "**/.turbo"
key: turbo-${{ hashFiles('.github/workflows/ci.yml') }}-${{ github.ref }}
path: "**/node_modules"
key: cache-node_modules-${{ hashFiles('**/yarn.lock') }}-${{ github.run_id }}
- name: Install NPM Dependencies
run: yarn install --prefer-offline --frozen-lockfile --ignore-engines --registry https://registry.npmjs.org --network-timeout 300000