summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Nate Moore <natemoo-re@users.noreply.github.com> 2021-12-16 15:38:55 -0600
committerGravatar GitHub <noreply@github.com> 2021-12-16 15:38:55 -0600
commitc6928478ae96691c77d523474a03c9dd005d1934 (patch)
tree5bab8dff6e76b866b901b5d1ef563f78be6b4a15
parentbb52818ebea1daa3c802fcd3d3b37472237201a2 (diff)
downloadastro-c6928478ae96691c77d523474a03c9dd005d1934.tar.gz
astro-c6928478ae96691c77d523474a03c9dd005d1934.tar.zst
astro-c6928478ae96691c77d523474a03c9dd005d1934.zip
Update CI to cache `node_modules` per OS (#2210)
* chore(action): update CI to cache node_modules per OS * fix(ci): run tests on lint fix * Update ci.yml
-rw-r--r--.github/workflows/ci.yml23
1 files changed, 16 insertions, 7 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index d470cfc96..9c9de5277 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -88,10 +88,10 @@ jobs:
uses: actions/cache@v2
with:
path: "**/node_modules"
- key: cache-node_modules-${{ hashFiles('**/yarn.lock') }}-${{ github.run_id }}
+ key: cache-node_modules-${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}-${{ github.run_id }}
restore-keys: |
- cache-node_modules-${{ hashFiles('**/yarn.lock') }}-${{ github.run_id }}
- cache-node_modules-${{ hashFiles('**/yarn.lock') }}-
+ cache-node_modules-${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}-${{ github.run_id }}
+ cache-node_modules-${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}-
- name: Install NPM Dependencies
run: yarn install --prefer-offline --frozen-lockfile --ignore-engines --registry https://registry.npmjs.org --network-timeout 300000
@@ -146,7 +146,10 @@ jobs:
uses: actions/cache@v2
with:
path: "**/node_modules"
- key: cache-node_modules-${{ hashFiles('**/yarn.lock') }}-${{ github.run_id }}
+ key: cache-node_modules-${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}-${{ github.run_id }}
+ restore-keys: |
+ cache-node_modules-${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}-${{ github.run_id }}
+ cache-node_modules-${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}-
- name: Install NPM Dependencies
run: yarn install --prefer-offline --frozen-lockfile --ignore-engines --registry https://registry.npmjs.org --network-timeout 300000
@@ -191,7 +194,10 @@ jobs:
uses: actions/cache@v2
with:
path: "**/node_modules"
- key: cache-node_modules-${{ hashFiles('**/yarn.lock') }}-${{ github.run_id }}
+ key: cache-node_modules-${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}-${{ github.run_id }}
+ restore-keys: |
+ cache-node_modules-${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}-${{ github.run_id }}
+ cache-node_modules-${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}-
- name: Install NPM Dependencies
run: yarn install --prefer-offline --frozen-lockfile --ignore-engines --registry https://registry.npmjs.org --network-timeout 300000
@@ -237,7 +243,10 @@ jobs:
uses: actions/cache@v2
with:
path: "**/node_modules"
- key: cache-node_modules-${{ hashFiles('**/yarn.lock') }}-${{ github.run_id }}
+ key: cache-node_modules-${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}-${{ github.run_id }}
+ restore-keys: |
+ cache-node_modules-${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}-${{ github.run_id }}
+ cache-node_modules-${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}-
- name: Install NPM Dependencies
run: yarn install --prefer-offline --frozen-lockfile --ignore-engines --registry https://registry.npmjs.org --network-timeout 300000
@@ -249,7 +258,7 @@ jobs:
uses: changesets/action@v1
with:
publish: yarn changeset publish
- commit: 'chore: release'
+ commit: '[ci] release'
title: '[ci] release'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}