Skip to content

Speed up frontend CI #2520

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Apr 16, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,24 @@ jobs:
working-directory: frontend
steps:
- uses: actions/checkout@v4
- name: Restore cached build
id: cache-build
uses: actions/cache@v4
with:
path: frontend/build
key: frontend-build-${{ hashFiles('frontend/**') }}
restore-keys: |
frontend-build-
- name: Set up Node
if: steps.cache-build.outputs.cache-hit != 'true'
uses: actions/setup-node@v4
with:
node-version: 18
- name: Install packages
run: npm install
if: steps.cache-build.outputs.cache-hit != 'true'
run: npm ci
- name: Build dist
if: steps.cache-build.outputs.cache-hit != 'true'
run: npm run build
- name: Upload dist
uses: actions/upload-artifact@v4
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
with:
node-version: 18
- name: Install packages
run: npm install
run: npm ci
- name: Build dist
run: npm run build
- name: Upload dist
Expand Down
Loading