Skip to content

Commit 0939e27

Browse files
authored
chore: update workflow files (#85)
Co-authored-by: ndthanhdev <>
1 parent c6d7cb2 commit 0939e27

15 files changed

Lines changed: 2312 additions & 766 deletions

.github/workflows/release-dev.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ on:
66
- main
77

88
jobs:
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
@@ -17,7 +17,7 @@ jobs:
1717
- name: Setup Dagger
1818
uses: dagger/dagger-for-github@v8.2.0
1919
with:
20-
version: v0.20.3
20+
version: v0.20.6
2121
verb: functions
2222
workdir: ./etc/workflow-runtime
2323

@@ -29,9 +29,7 @@ jobs:
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 }}

.github/workflows/release-prod.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ on:
66
- v*.*.*
77

88
jobs:
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
@@ -17,7 +17,7 @@ jobs:
1717
- name: Setup Dagger
1818
uses: dagger/dagger-for-github@v8.2.0
1919
with:
20-
version: v0.20.3
20+
version: v0.20.6
2121
verb: functions
2222
workdir: ./etc/workflow-runtime
2323

@@ -29,9 +29,7 @@ jobs:
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 }}

.github/workflows/release-stg.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ on:
66
- release-*
77

88
jobs:
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
@@ -17,7 +17,7 @@ jobs:
1717
- name: Setup Dagger
1818
uses: dagger/dagger-for-github@v8.2.0
1919
with:
20-
version: v0.20.3
20+
version: v0.20.6
2121
verb: functions
2222
workdir: ./etc/workflow-runtime
2323

@@ -29,9 +29,7 @@ jobs:
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 }}
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
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.6
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 numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
name: Validate PR
1+
name: Workspace Verify
22

33
on:
44
pull_request:
55
branches:
66
- main
77

88
jobs:
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
@@ -17,7 +17,7 @@ jobs:
1717
- name: Setup Dagger
1818
uses: dagger/dagger-for-github@v8.2.0
1919
with:
20-
version: v0.20.3
20+
version: v0.20.6
2121
verb: functions
2222
workdir: ./etc/workflow-runtime
2323

@@ -29,6 +29,4 @@ jobs:
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

.moon/toolchains.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ rust:
1515
syncToolchainConfig: true
1616
bins:
1717
- trunk@0.21.14
18+
- wasm-bindgen-cli@0.2.118
1819
targets:
1920
- wasm32-unknown-unknown
2021
components:

.prototools

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ go = "^1"
33
moon = "^2"
44
node = "^24"
55
yarn = "^4"
6-
rust = "1.90.0"
6+
rust = "1.91.0"
77

88
[plugins]
99
dagger = "source:https://raw.githubusercontent.com/Phault/proto-toml-plugins/main/dagger/plugin.toml"

0 commit comments

Comments
 (0)