Skip to content

Commit

Permalink
save types
Browse files Browse the repository at this point in the history
  • Loading branch information
compojoom committed Dec 17, 2024
1 parent 0695a7e commit b9511eb
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ jobs:
${{ github.workspace }}/.yarn/install-state.gz
${{ github.workspace }}/src/types/**
key: ${{ runner.os }}-web-core-modules-${{ hashFiles('**/package.json', '**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-web-core-modules-
- name: Restore Nextjs/Cypress Cache
id: restore-nc
Expand All @@ -45,18 +47,19 @@ jobs:
restore-keys: |
${{ runner.os }}-nextjs-${{ hashFiles('**/yarn.lock') }}-
- name: Yarn install
- name: Yarn install & after-install generate types
if: steps.restore-yarn-types.outputs.cache-hit != 'true'
run: yarn install --immutable

- run: yarn after-install
run: |
yarn install --immutable
yarn after-install
- name: Save Yarn Cache
uses: actions/cache/save@v4
with:
path: |
**/node_modules
${{ github.workspace }}/.yarn/install-state.gz
${{ github.workspace }}/src/types/**
key: ${{ steps.restore-yarn-types.outputs.cache-primary-key }}

- name: Save Nextjs/Cypress Cache
Expand Down

0 comments on commit b9511eb

Please sign in to comment.