Upgrade Relay to v20.1.1 and unify compiler config

Consolidate the two per-app relay configs (console and trust)
into a single multi-project relay.config.json at the repo root
with three projects: core, iam, and trust. Bump all relay
packages from v19 to v20.1.1 and move relay-compiler to the
root devDependencies. Replace per-workspace relay scripts with
a single root-level npm run relay command and update the
GNUmakefile, CI workflows, and docs accordingly.

Signed-off-by: Émile Ré <emile@getprobo.com>
This commit is contained in:
Émile Ré
2026-04-14 15:59:11 +04:00
parent f08abf3be2
commit 74d7d3ff25
14 changed files with 82 additions and 91 deletions

View File

@@ -27,14 +27,13 @@ jobs:
with:
go: "false"
- run: "npm --workspace @probo/emails run build"
- run: "npm run relay"
- name: "Build console"
run: |
npm --workspace @probo/console run relay
npm --workspace @probo/console run check
NODE_ENV=production npm --workspace @probo/console run build
- name: "Build trust"
run: |
npm --workspace @probo/trust run relay
npm --workspace @probo/trust run check
NODE_ENV=production npm --workspace @probo/trust run build
- uses: "actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f" # v7
@@ -305,9 +304,7 @@ jobs:
go: "false"
- uses: reviewdog/action-setup@d8a7baabd7f3e8544ee4dbde3ee41d0011c3a93f # v1.5.0
- name: "Generate Relay artifacts"
run: |
npm --workspace @probo/console run relay
npm --workspace @probo/trust run relay
run: npm run relay
- name: "Run eslint"
env:
REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}

View File

@@ -24,14 +24,13 @@ jobs:
with:
go: "false"
- run: "npm --workspace @probo/emails run build"
- run: "npm run relay"
- name: "Build console"
run: |
npm --workspace @probo/console run relay
npm --workspace @probo/console run check
NODE_ENV=production npm --workspace @probo/console run build
- name: "Build trust"
run: |
npm --workspace @probo/trust run relay
npm --workspace @probo/trust run check
NODE_ENV=production npm --workspace @probo/trust run build
- uses: "actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f" # v7