diff --git a/.github/actions/cache-build/action.yml b/.github/actions/cache-build/action.yml index ecfa1b676ebc67..09456071109b05 100644 --- a/.github/actions/cache-build/action.yml +++ b/.github/actions/cache-build/action.yml @@ -21,3 +21,6 @@ runs: **/.turbo/** **/dist/** key: ${{ runner.os }}-${{ env.cache-name }}-${{ env.key-1 }}-${{ env.key-2 }}-${{ env.key-3 }} + - run: yarn build + if: steps.cache-build.outputs.cache-hit != 'true' + shell: bash diff --git a/.github/actions/cache-db/action.yml b/.github/actions/cache-db/action.yml index c6ca9458acb00f..93fc9ebd2f844a 100644 --- a/.github/actions/cache-db/action.yml +++ b/.github/actions/cache-db/action.yml @@ -21,6 +21,9 @@ runs: key: ${{ runner.os }}-${{ env.cache-name }}-${{ inputs.path }}-${{ env.key-1 }}-${{ github.sha }} restore-keys: | ${{ runner.os }}-${{ env.cache-name }}-${{ inputs.path }}-${{ env.key-1 }}-${{ github.sha }} + - run: yarn db-seed + if: steps.cache-db.outputs.cache-hit != 'true' + shell: bash - name: Postgres Dump Backup if: steps.cache-db.outputs.cache-hit != 'true' uses: tj-actions/pg-dump@v2.3 diff --git a/.github/workflows/production-build.yml b/.github/workflows/production-build.yml index 42dacb96c205f2..83a081835951b0 100644 --- a/.github/workflows/production-build.yml +++ b/.github/workflows/production-build.yml @@ -19,12 +19,6 @@ jobs: steps: - uses: actions/checkout@v3 - uses: ./.github/actions/cache-db - id: cache-db - uses: ./.github/actions/yarn-install - uses: ./.github/actions/cache-build - id: cache-build - uses: ./.github/actions/env-read-file - - run: yarn db-seed - if: steps.cache-db.outputs.cache-hit != 'true' - - run: yarn build - if: steps.cache-build.outputs.cache-hit != 'true'