File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change 50
50
run : cd frontend && yarn install --frozen-lockfile
51
51
52
52
- name : build
53
- run : cd frontend && yarn build
53
+ run : |
54
+ just build-prepare
55
+ cd frontend && yarn build
54
56
55
57
- uses : actions/configure-pages@v5
56
58
Original file line number Diff line number Diff line change @@ -8,8 +8,11 @@ spoilers-font-file := "frontend/public/SpoilersAhead.otf"
8
8
# run frontend dev server
9
9
dev : download-spoilers-font (yarn " dev --host --port 8080" )
10
10
11
+ [private ]
12
+ build-prepare : download-spoilers-font minify-json
13
+
11
14
# build frontend
12
- build : download-spoilers-font minify-json (yarn-prod " build" )
15
+ build : build-prepare (yarn-prod " build" )
13
16
14
17
# run frontend in prod mode
15
18
preview : download-spoilers-font (yarn-prod " preview" )
@@ -32,7 +35,7 @@ download-spoilers-font:
32
35
33
36
minify-json :
34
37
#!/usr/bin/env bash
35
- if [[ " $CI" == " " ] ]; then
38
+ if [ " $CI" == " " ]; then
36
39
echo ignoring minifying in non-ci
37
40
exit
38
41
fi
You can’t perform that action at this time.
0 commit comments