Added yarn cache to CI workflows (#13716)

This commit is contained in:
Oscar Dominguez 2021-11-30 09:01:22 +01:00 committed by GitHub
parent 6aee35ec3d
commit 141f794750
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 0 deletions

View File

@ -16,6 +16,7 @@ jobs:
FORCE_COLOR: 0 FORCE_COLOR: 0
with: with:
node-version: '14.17.0' node-version: '14.17.0'
cache: yarn
- name: Set up Git - name: Set up Git
run: | run: |

View File

@ -21,6 +21,7 @@ jobs:
FORCE_COLOR: 0 FORCE_COLOR: 0
with: with:
node-version: '14' node-version: '14'
cache: yarn
- run: yarn - run: yarn
- run: grunt release --skip-tests - run: grunt release --skip-tests

View File

@ -22,6 +22,7 @@ jobs:
FORCE_COLOR: 0 FORCE_COLOR: 0
with: with:
node-version: '14.17.0' node-version: '14.17.0'
cache: yarn
- run: yarn - run: yarn
- run: yarn lint - run: yarn lint
- uses: daniellockyer/action-slack-build@master - uses: daniellockyer/action-slack-build@master
@ -55,6 +56,7 @@ jobs:
FORCE_COLOR: 0 FORCE_COLOR: 0
with: with:
node-version: '14.17.0' node-version: '14.17.0'
cache: yarn
- name: Shutdown MySQL - name: Shutdown MySQL
run: sudo service mysql stop run: sudo service mysql stop
@ -98,6 +100,7 @@ jobs:
FORCE_COLOR: 0 FORCE_COLOR: 0
with: with:
node-version: ${{ matrix.node }} node-version: ${{ matrix.node }}
cache: yarn
- name: Shutdown MySQL - name: Shutdown MySQL
run: sudo service mysql stop run: sudo service mysql stop
@ -184,6 +187,7 @@ jobs:
FORCE_COLOR: 0 FORCE_COLOR: 0
with: with:
node-version: '12.22.1' node-version: '12.22.1'
cache: yarn
- run: npm install -g ghost-cli@latest - run: npm install -g ghost-cli@latest
- run: npm --no-git-tag-version version minor # We need to artificially bump the minor version to get migrations to run - run: npm --no-git-tag-version version minor # We need to artificially bump the minor version to get migrations to run