diff --git a/.github/workflows/UnitTests.yml b/.github/workflows/UnitTests.yml index 094da009..2483154e 100644 --- a/.github/workflows/UnitTests.yml +++ b/.github/workflows/UnitTests.yml @@ -40,3 +40,29 @@ jobs: - name: "Linting packages" run: pnpm lint + + - name: "Build packages" + run: pnpm -r pack + + - 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 @mendix/pluggable-widget-tools package" + uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7 + with: + 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 diff --git a/packages/pluggable-widgets-tools/bin/mx-scripts.js b/packages/pluggable-widgets-tools/bin/mx-scripts.js index 56981568..c3330a88 100755 --- a/packages/pluggable-widgets-tools/bin/mx-scripts.js +++ b/packages/pluggable-widgets-tools/bin/mx-scripts.js @@ -10,6 +10,8 @@ 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 {