From bcc8527ee60f33e44d2cdecd077690a437c9be95 Mon Sep 17 00:00:00 2001 From: Till Prochaska <1512805+tillprochaska@users.noreply.github.com> Date: Mon, 6 Jan 2025 14:01:06 +0100 Subject: [PATCH 1/2] Build UI for every commit/PR We previously skipped this step as it can take quite long (due to the outdated CRA build setup), but some errors will only occur during a final build (e.g. missing type declarations in dependencies). --- .github/workflows/build-ui.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/build-ui.yml b/.github/workflows/build-ui.yml index 1222c4ea25..eef6abaa7b 100644 --- a/.github/workflows/build-ui.yml +++ b/.github/workflows/build-ui.yml @@ -38,6 +38,9 @@ jobs: - name: Run tests run: make test-ui + - name: Build + run: make build-ui + - name: Build production image if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags') run: docker build -t ghcr.io/alephdata/aleph-ui-production:${GITHUB_SHA} -f ui/Dockerfile.production ui From c959f7545673041a9dab06f0a9c184a109504da2 Mon Sep 17 00:00:00 2001 From: Till Prochaska <1512805+tillprochaska@users.noreply.github.com> Date: Mon, 6 Jan 2025 14:07:32 +0100 Subject: [PATCH 2/2] Bump FollowTheMoney TS lib to fix missing type declarations --- ui/package-lock.json | 9 +++++---- ui/package.json | 2 +- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/ui/package-lock.json b/ui/package-lock.json index 6c7b963281..2dc0f1dbca 100644 --- a/ui/package-lock.json +++ b/ui/package-lock.json @@ -8,7 +8,7 @@ "name": "aleph-ui", "version": "4.0.2", "dependencies": { - "@alephdata/followthemoney": "^3.7.9", + "@alephdata/followthemoney": "^3.7.12", "@blueprintjs/colors": "^4.1.5", "@blueprintjs/core": "^4.18.0", "@blueprintjs/icons": "^4.16.0", @@ -89,9 +89,10 @@ "dev": true }, "node_modules/@alephdata/followthemoney": { - "version": "3.7.9", - "resolved": "https://registry.npmjs.org/@alephdata/followthemoney/-/followthemoney-3.7.9.tgz", - "integrity": "sha512-uaC6JESOyE9fI/fXd9BlsqsQ4tXf+VFmZp6eKe0Ifu4PX3kdbcuVP9iT4zd8tgiX3aD+LV2TQPbOZNolymX/JA==", + "version": "3.7.12", + "resolved": "https://registry.npmjs.org/@alephdata/followthemoney/-/followthemoney-3.7.12.tgz", + "integrity": "sha512-1MytRx0tUoy/7zAS/MuFbW8ogtGWG4Ws3oa8cSWNijCbbtEuPsrsFPkQWW78cn/yYSBANzRZQBQYDgUtNBY0yw==", + "license": "MIT", "dependencies": { "uuid": "~11.0.3" }, diff --git a/ui/package.json b/ui/package.json index 695b74118d..9e57a474c8 100644 --- a/ui/package.json +++ b/ui/package.json @@ -3,7 +3,7 @@ "version": "4.0.2", "private": true, "dependencies": { - "@alephdata/followthemoney": "^3.7.9", + "@alephdata/followthemoney": "^3.7.12", "@blueprintjs/colors": "^4.1.5", "@blueprintjs/core": "^4.18.0", "@blueprintjs/icons": "^4.16.0",