File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 66 - main
77
88jobs :
9- run-workflow :
10- name : Run Workflow
9+ release-dev :
10+ name : Release Dev
1111 runs-on : ubuntu-latest
1212 steps :
1313 - uses : actions/checkout@v6
2929 - name : Install dependencies
3030 run : yarn install
3131
32- - name : Run workflow
33- working-directory : ./etc/scripts/workflows
34- run : ./release.ts
32+ - run : ./etc/scripts/workflows/release-publish.ts
3533 env :
3634 MODE : dev
3735 GH_TOKEN : ${{ secrets.GH_TOKEN_DEV }}
Original file line number Diff line number Diff line change 66 - v*.*.*
77
88jobs :
9- run-workflow :
10- name : Run Workflow
9+ release-prod :
10+ name : Release Prod
1111 runs-on : ubuntu-latest
1212 steps :
1313 - uses : actions/checkout@v6
2929 - name : Install dependencies
3030 run : yarn install
3131
32- - name : Run workflow
33- working-directory : ./etc/scripts/workflows
34- run : ./release.ts
32+ - run : ./etc/scripts/workflows/release-publish.ts
3533 env :
3634 MODE : prod
3735 GH_TOKEN : ${{ secrets.GH_TOKEN_PROD }}
Original file line number Diff line number Diff line change 66 - release-*
77
88jobs :
9- run-workflow :
10- name : Run Workflow
9+ release-stg :
10+ name : Release Stg
1111 runs-on : ubuntu-latest
1212 steps :
1313 - uses : actions/checkout@v6
2929 - name : Install dependencies
3030 run : yarn install
3131
32- - name : Run workflow
33- working-directory : ./etc/scripts/workflows
34- run : ./release.ts
32+ - run : ./etc/scripts/workflows/release-publish.ts
3533 env :
3634 MODE : stg
3735 GH_TOKEN : ${{ secrets.GH_TOKEN_STG }}
Original file line number Diff line number Diff line change 1+ name : Workspace Check
2+
3+ on :
4+ push :
5+ branches :
6+ - main
7+
8+ jobs :
9+ workspace-check :
10+ name : Workspace Check
11+ runs-on : ubuntu-latest
12+ steps :
13+ - uses : actions/checkout@v6
14+ with :
15+ fetch-depth : 0
16+
17+ - name : Setup Dagger
18+ uses : dagger/dagger-for-github@v8.2.0
19+ with :
20+ version : v0.20.3
21+ verb : functions
22+ workdir : ./etc/workflow-runtime
23+
24+ - name : Setup Node.js
25+ uses : actions/setup-node@v4
26+ with :
27+ node-version : 24
28+
29+ - name : Install dependencies
30+ run : yarn install
31+
32+ - run : ./etc/scripts/workflows/workspace-check.ts
Original file line number Diff line number Diff line change 1- name : Validate PR
1+ name : Workspace Verify
22
33on :
44 pull_request :
55 branches :
66 - main
77
88jobs :
9- run-workflow :
10- name : Run Workflow
9+ workspace-verify :
10+ name : Workspace Verify
1111 runs-on : ubuntu-latest
1212 steps :
1313 - uses : actions/checkout@v6
2929 - name : Install dependencies
3030 run : yarn install
3131
32- - name : Run workflow
33- working-directory : ./etc/scripts/workflows
34- run : ./validate-pr.ts
32+ - run : ./etc/scripts/workflows/workspace-verify.ts
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 11#!/usr/bin/env -S yarn dlx tsx
22import "zx/globals" ;
3+ import fse from "fs-extra" ;
34
4- import { cleanBuild } from "../utils/clean-build" ;
55import { workDirs } from "../utils/work-dirs" ;
66
77$ . verbose = true ;
88
9- await cleanBuild ( ) ;
9+ await fse . emptyDir ( workDirs . apps . app . public . path ) ;
1010
1111cd ( workDirs . etc . workflowRuntime . path ) ;
1212
13+ const mode = $ . env . MODE ?? "dev" ;
14+
1315await $ `${ [
1416 "dagger" ,
1517 "call" ,
@@ -20,7 +22,7 @@ await $`${[
2022 "--name" ,
2123 "MODE" ,
2224 "--value" ,
23- $ . env . MODE ?? "dev" ,
25+ mode ,
2426 "with-secret-variable" ,
2527 "--name" ,
2628 "GH_TOKEN" ,
@@ -34,9 +36,7 @@ await $`${[
3436 "scripts:publish" ,
3537 "container" ,
3638 "directory" ,
37- "--path" ,
38- "/workspace/apps/app/public" ,
39+ "--path=/workspace/apps/app/public" ,
3940 "export" ,
40- "--path" ,
41- workDirs . apps . app . public . path ,
41+ `--path=${ workDirs . apps . app . public . path } ` ,
4242] } `;
Original file line number Diff line number Diff line change 11#!/usr/bin/env -S yarn dlx tsx
22import "zx/globals" ;
33
4- import { cleanBuild } from "../utils/clean-build" ;
54import { workDirs } from "../utils/work-dirs" ;
65
76$ . verbose = true ;
87
9- await cleanBuild ( ) ;
10-
118cd ( workDirs . etc . workflowRuntime . path ) ;
129
1310await $ `${ [
@@ -21,11 +18,9 @@ await $`${[
2118 "MODE" ,
2219 "--value" ,
2320 "dev" ,
24- "with-moon-task" ,
25- "--task" ,
26- "scripts:test" ,
27- "with-moon-task" ,
28- "--task" ,
29- "scripts:build" ,
21+ "with-moon-command" ,
22+ "--command" ,
23+ "check" ,
24+ "--args=--all" ,
3025 "stdout" ,
3126] } `;
Original file line number Diff line number Diff line change 1+ #!/usr/bin/env -S yarn dlx tsx
2+ import "zx/globals" ;
3+
4+ import { workDirs } from "../utils/work-dirs" ;
5+
6+ $ . verbose = true ;
7+
8+ cd ( workDirs . etc . workflowRuntime . path ) ;
9+
10+ await $ `${ [
11+ "dagger" ,
12+ "call" ,
13+ "--dir" ,
14+ workDirs . path ,
15+ "build-env" ,
16+ "with-env-variable" ,
17+ "--name" ,
18+ "MODE" ,
19+ "--value" ,
20+ "dev" ,
21+ "with-moon-command" ,
22+ "--command" ,
23+ "ci" ,
24+ "stdout" ,
25+ ] } `;
You can’t perform that action at this time.
0 commit comments