From 9b7295fbc5fa5d61ce7193ab0b424b901e14a460 Mon Sep 17 00:00:00 2001 From: Arjo Bruijnes Date: Wed, 8 Jul 2026 10:42:59 +0200 Subject: [PATCH 1/6] Build and archive packages for testing --- .github/workflows/UnitTests.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/.github/workflows/UnitTests.yml b/.github/workflows/UnitTests.yml index 094da009..c2bca217 100644 --- a/.github/workflows/UnitTests.yml +++ b/.github/workflows/UnitTests.yml @@ -40,3 +40,22 @@ jobs: - name: "Linting packages" run: pnpm lint + + - name: "Build packages" + run: pnpm -r build + + - name: "Prepare artifacts" + run: | + mkdir artifacts + sha_short=$(echo "$GITHUB_SHA" | head -c 7) + for package in $(ls *.tgz); do + revisioned=$(echo "$package" | sed -e "s/^\(.*\)\(.tgz\)/\1-$sha_short\2/") + mv $package ./artifacts/$revisioned + done + + - name: "Archive artifacts" + uses: actions/upload-artifact@v4 + with: + name: packages + path: artifacts/*.tgz + retention-days: 5 From 7a58844067b73dace900ad34991982a88b6695f4 Mon Sep 17 00:00:00 2001 From: Arjo Bruijnes Date: Wed, 8 Jul 2026 10:51:22 +0200 Subject: [PATCH 2/6] Pin action --- .github/workflows/UnitTests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/UnitTests.yml b/.github/workflows/UnitTests.yml index c2bca217..2bdea7c4 100644 --- a/.github/workflows/UnitTests.yml +++ b/.github/workflows/UnitTests.yml @@ -54,7 +54,7 @@ jobs: done - name: "Archive artifacts" - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7 with: name: packages path: artifacts/*.tgz From d57ef0c0d10a0188cdf19570f72c82c0f0587d21 Mon Sep 17 00:00:00 2001 From: Arjo Bruijnes Date: Wed, 8 Jul 2026 10:55:28 +0200 Subject: [PATCH 3/6] Dummy change --- packages/pluggable-widgets-tools/bin/mx-scripts.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/packages/pluggable-widgets-tools/bin/mx-scripts.js b/packages/pluggable-widgets-tools/bin/mx-scripts.js index 56981568..e9ec1fc5 100755 --- a/packages/pluggable-widgets-tools/bin/mx-scripts.js +++ b/packages/pluggable-widgets-tools/bin/mx-scripts.js @@ -10,6 +10,9 @@ const { auditPluggableWidgetsTools } = require("../dist/commands/audit.js"); const { prettierConfigPath } = require("../dist/utils/formatting.js"); const { toolsRoot, widgetRoot } = require("../dist/widget/paths.js"); + +console.log("Dummy change to trigger build.") + checkNodeVersion(); (async () => { try { @@ -154,14 +157,14 @@ function checkNodeVersion() { if (!nodeRange.test(nodeVersion)) { console.error( red(`To build this widget a minimum node version ${nodeRange} is required.\n`) + - bold(whiteBright("Please upgrade your node version!")) + bold(whiteBright("Please upgrade your node version!")) ); process.exit(1); } if (npmVersion < 8) { console.error( red("To build this widget a minimum npm version 8.0.0 is required.\n") + - bold(whiteBright("Please upgrade your npm version!")) + bold(whiteBright("Please upgrade your npm version!")) ); process.exit(1); } From 82eb6f1ee3c70231356944267cacfa61ffffe937 Mon Sep 17 00:00:00 2001 From: Arjo Bruijnes Date: Wed, 8 Jul 2026 10:59:42 +0200 Subject: [PATCH 4/6] Fix formatting for dummy change --- packages/pluggable-widgets-tools/bin/mx-scripts.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/packages/pluggable-widgets-tools/bin/mx-scripts.js b/packages/pluggable-widgets-tools/bin/mx-scripts.js index e9ec1fc5..c3330a88 100755 --- a/packages/pluggable-widgets-tools/bin/mx-scripts.js +++ b/packages/pluggable-widgets-tools/bin/mx-scripts.js @@ -10,8 +10,7 @@ const { auditPluggableWidgetsTools } = require("../dist/commands/audit.js"); const { prettierConfigPath } = require("../dist/utils/formatting.js"); const { toolsRoot, widgetRoot } = require("../dist/widget/paths.js"); - -console.log("Dummy change to trigger build.") +console.log("Dummy change to trigger build."); checkNodeVersion(); (async () => { @@ -157,14 +156,14 @@ function checkNodeVersion() { if (!nodeRange.test(nodeVersion)) { console.error( red(`To build this widget a minimum node version ${nodeRange} is required.\n`) + - bold(whiteBright("Please upgrade your node version!")) + bold(whiteBright("Please upgrade your node version!")) ); process.exit(1); } if (npmVersion < 8) { console.error( red("To build this widget a minimum npm version 8.0.0 is required.\n") + - bold(whiteBright("Please upgrade your npm version!")) + bold(whiteBright("Please upgrade your npm version!")) ); process.exit(1); } From 5c9c24d20a0e75e2c2337c0e4bc10845a7e691ac Mon Sep 17 00:00:00 2001 From: Arjo Bruijnes Date: Wed, 8 Jul 2026 11:02:14 +0200 Subject: [PATCH 5/6] Correct the script used for building packages --- .github/workflows/UnitTests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/UnitTests.yml b/.github/workflows/UnitTests.yml index 2bdea7c4..f97adbf1 100644 --- a/.github/workflows/UnitTests.yml +++ b/.github/workflows/UnitTests.yml @@ -42,7 +42,7 @@ jobs: run: pnpm lint - name: "Build packages" - run: pnpm -r build + run: pnpm -r pack - name: "Prepare artifacts" run: | From d7cd568472f68b014e68659c4cc8006c0f249055 Mon Sep 17 00:00:00 2001 From: Arjo Bruijnes Date: Wed, 8 Jul 2026 14:58:41 +0200 Subject: [PATCH 6/6] Try splitting artifacts --- .github/workflows/UnitTests.yml | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/.github/workflows/UnitTests.yml b/.github/workflows/UnitTests.yml index f97adbf1..2483154e 100644 --- a/.github/workflows/UnitTests.yml +++ b/.github/workflows/UnitTests.yml @@ -53,9 +53,16 @@ jobs: mv $package ./artifacts/$revisioned done - - name: "Archive artifacts" + - name: "Archive @mendix/pluggable-widget-tools package" uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7 with: - name: packages - path: artifacts/*.tgz + name: mendix-pluggable-widgets-tools + path: artifacts/mendix-pluggable-widgets-tools*.tgz + retention-days: 5 + + - name: "Archive @mendix/generator-widget package" + uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7 + with: + name: mendix-generator-widget + path: artifacts/mendix-generator-widget*.tgz retention-days: 5