Skip to content

Commit

Permalink
chore(project): improved caching for export
Browse files Browse the repository at this point in the history
  • Loading branch information
darkoatanasovski committed Aug 9, 2023
1 parent 4f29355 commit da69f94
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions .github/workflows/export.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,13 @@ jobs:
with:
path: '**/node_modules'
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-modules-
${{ runner.os }}-build

- name: Cache Build Artifacts
if: ${{ steps.check-cache.outputs.cache-exists != 'true' }}
uses: actions/cache@v2
with:
path: build
key: ${{ runner.os }}-build

- name: Use Node.js 18.x
uses: actions/setup-node@v1
Expand All @@ -36,13 +40,6 @@ jobs:
yarn
npx vite build --mode prod
- name: Cache Build Artifacts
if: ${{ steps.check-cache.outputs.cache-exists != 'true' }}
uses: actions/cache@v2
with:
path: build
key: ${{ runner.os }}-build

- name: Inject config-id in webapp.ini
run: |
touch build/public/.webapp.ini
Expand Down

0 comments on commit da69f94

Please sign in to comment.