Skip to content

Commit 81fb25d

Browse files
committed
adapted script to project structure
1 parent 7bb8fce commit 81fb25d

2 files changed

Lines changed: 17 additions & 4 deletions

File tree

.github/workflows/deploy-frontend.yml

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ on:
77
pull_request:
88
branches:
99
- master
10+
paths:
11+
- 'frontend/**'
1012
workflow_dispatch:
1113
inputs:
1214
skip-cache:
@@ -31,10 +33,20 @@ jobs:
3133
- name: Checkout repository
3234
uses: actions/checkout@v4
3335

34-
- name: Setup node
35-
uses: ./.github/actions/setup-node
36+
# - name: Setup node
37+
# uses: ./.github/actions/setup-node
38+
# with:
39+
# NODEJS_VERSION: '22'
40+
- name: Setup Node
41+
uses: actions/setup-node@v4
3642
with:
37-
NODEJS_VERSION: '22'
43+
node-version: '22'
44+
cache: 'npm'
45+
cache-dependency-path: frontend/package-lock.json
46+
47+
- name: Install dependencies
48+
working-directory: frontend
49+
run: npm ci
3850

3951
- name: Compute source hash
4052
id: source-hash
@@ -50,6 +62,7 @@ jobs:
5062
- name: Build app
5163
if: steps.cache-build.outputs.cache-hit != 'true'
5264
#run: yarn workspace @claude-certificate/frontend build
65+
working-directory: frontend
5366
run: npm run build
5467

5568
- name: Upload build artifact

frontend/next.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import type { NextConfig } from "next";
22

33
const nextConfig: NextConfig = {
4-
/* config options here */
4+
output: 'export',
55
};
66

77
export default nextConfig;

0 commit comments

Comments
 (0)