Skip to content
This repository was archived by the owner on Aug 15, 2023. It is now read-only.

Commit b3dd309

Browse files
committed
ci: use actions/cache@v3
1 parent ad7c743 commit b3dd309

File tree

3 files changed

+15
-6
lines changed

3 files changed

+15
-6
lines changed

.github/workflows/gh_release.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
cache: 'yarn'
2525
cache-dependency-path: yarn.lock
2626

27-
- uses: actions/cache@v2
27+
- uses: actions/cache@v3
2828
with:
2929
key: build-workspace-${{ github.run_id }}
3030
path: |
@@ -87,7 +87,7 @@ jobs:
8787
cache: 'yarn'
8888
cache-dependency-path: yarn.lock
8989

90-
- uses: actions/cache@v2
90+
- uses: actions/cache@v3
9191
with:
9292
key: build-guardoni-${{ github.run_id }}-${{ matrix.config.os }}
9393
restore-keys: |
@@ -121,7 +121,7 @@ jobs:
121121
with:
122122
ref: ${{ inputs.ref }}
123123

124-
- uses: actions/cache@v2
124+
- uses: actions/cache@v3
125125
with:
126126
key: build-${{ github.run_id }}
127127
restore-keys: |

.github/workflows/guardoni_pull_request.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ jobs:
112112
cache: 'yarn'
113113
cache-dependency-path: yarn.lock
114114

115-
- uses: actions/cache@v2
115+
- uses: actions/cache@v3
116116
with:
117117
key: build-guardoni-${{ github.run_id }}-${{ matrix.config.os }}
118118
restore-keys: |

.github/workflows/master_release.yml

+11-2
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
cache: 'yarn'
2727
cache-dependency-path: yarn.lock
2828

29-
- uses: actions/cache@v2
29+
- uses: actions/cache@v3
3030
with:
3131
key: build-workspace-${{ github.run_id }}
3232
path: |
@@ -91,7 +91,8 @@ jobs:
9191
cache: 'yarn'
9292
cache-dependency-path: yarn.lock
9393

94-
- uses: actions/cache@v2
94+
- uses: actions/cache@v3
95+
id: guardoni-cache
9596
with:
9697
key: build-guardoni-${{ github.run_id }}-${{ matrix.config.os }}
9798
restore-keys: |
@@ -110,6 +111,14 @@ jobs:
110111
- name: Install dependencies
111112
run: yarn
112113

114+
- name: Build Guardoni
115+
if: steps.guardoni-cache.outputs.cache-hit != 'true'
116+
env:
117+
NODE_ENV: production
118+
run: |
119+
yarn guardoni build:cli
120+
yarn guardoni build:app
121+
113122
- name: Build Guardoni for ${{ matrix.config.os }}
114123
env:
115124
DOTENV_CONFIG_PATH: .env

0 commit comments

Comments
 (0)