File tree Expand file tree Collapse file tree 2 files changed +21
-4
lines changed Expand file tree Collapse file tree 2 files changed +21
-4
lines changed Original file line number Diff line number Diff line change 43
43
with :
44
44
path : |
45
45
~/.npm
46
+ ~/.cache/npm
46
47
web/node_modules
47
48
key : ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
48
49
restore-keys : |
62
63
working-directory : web
63
64
continue-on-error : true
64
65
66
+ - name : Clean previous build
67
+ run : rm -rf ../dist
68
+ working-directory : web
69
+
70
+ - name : Build frontend for Tauri compilation
71
+ run : |
72
+ echo "Building frontend for Tauri compilation..."
73
+ npm run build
74
+ echo "Frontend build completed"
75
+ ls -la ../dist || (echo "dist directory not found in workspace root" && exit 1)
76
+ working-directory : web
77
+
65
78
- name : Format check
66
79
run : cargo fmt --all -- --check
67
80
@@ -119,6 +132,7 @@ jobs:
119
132
with :
120
133
path : |
121
134
~/.npm
135
+ ~/.cache/npm
122
136
web/node_modules
123
137
key : ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
124
138
restore-keys : |
@@ -129,14 +143,15 @@ jobs:
129
143
working-directory : web
130
144
131
145
- name : Clean previous build
132
- run : rm -rf dist
146
+ run : rm -rf ../dist
147
+ working-directory : web
133
148
134
149
- name : Build frontend
135
150
run : |
136
151
echo "Building frontend..."
137
152
npm run build
138
153
echo "Frontend build completed"
139
- ls -la dist || (echo "dist directory not found in workspace root" && exit 1)
154
+ ls -la ../ dist || (echo "dist directory not found in workspace root" && exit 1)
140
155
working-directory : web
141
156
142
157
- name : Verify frontend dist exists
Original file line number Diff line number Diff line change 55
55
with :
56
56
path : |
57
57
~/.npm
58
+ ~/.cache/npm
58
59
web/node_modules
59
60
key : ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
60
61
restore-keys : |
@@ -65,14 +66,15 @@ jobs:
65
66
working-directory : web
66
67
67
68
- name : Clean previous build
68
- run : rm -rf dist
69
+ run : rm -rf ../dist
70
+ working-directory : web
69
71
70
72
- name : Build frontend
71
73
run : |
72
74
echo "Building frontend..."
73
75
npm run build
74
76
echo "Frontend build completed"
75
- ls -la dist || (echo "dist directory not found in workspace root" && exit 1)
77
+ ls -la ../ dist || (echo "dist directory not found in workspace root" && exit 1)
76
78
working-directory : web
77
79
78
80
- name : Verify frontend dist exists
You can’t perform that action at this time.
0 commit comments