From 4795fb3d4bad5ae0436ca73ce64fb689635b00d1 Mon Sep 17 00:00:00 2001 From: Nolan Ehrstrom Date: Wed, 9 Sep 2026 16:57:09 -0700 Subject: [PATCH 1/3] Add cascading JS package builds. Wire up js-package workflow and processmaker metadata so downstream packages rebuild when this package changes. Co-authored-by: Cursor --- .github/workflows/js-package.yml | 22 ++++++++++++++++++++++ package.json | 5 +++++ 2 files changed, 27 insertions(+) create mode 100644 .github/workflows/js-package.yml diff --git a/.github/workflows/js-package.yml b/.github/workflows/js-package.yml new file mode 100644 index 0000000..9487e7b --- /dev/null +++ b/.github/workflows/js-package.yml @@ -0,0 +1,22 @@ +name: js-package +run-name: js-stack ${{ github.event.pull_request.number || github.run_id }} + +on: + pull_request: + types: [opened, reopened, synchronize, edited] + workflow_dispatch: + +concurrency: + group: js-package-${{ github.repository }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + +jobs: + run: + uses: ProcessMaker/.github/.github/workflows/js-package.yml@js-builds-2 + secrets: inherit + with: + stack_id: ${{ github.event.pull_request.number || github.run_id }} + trigger_repo: ${{ github.event.repository.name }} + trigger_ref: ${{ github.event.pull_request.head.sha || github.ref }} + trigger_branch: ${{ github.event.pull_request.head.ref || github.ref_name }} + pr_body: ${{ toJSON(github.event.pull_request.body || '') }} diff --git a/package.json b/package.json index 62c45ff..f902f0a 100644 --- a/package.json +++ b/package.json @@ -4,6 +4,7 @@ "description": "ProcessMaker moddle extensions for BPMN 2.0", "scripts": { "all": "run-s lint test", + "build": "true", "lint": "eslint .", "dev": "npm test -- --watch", "test": "mocha -r esm -r ./test/expect --reporter=spec --recursive test" @@ -39,5 +40,9 @@ }, "dependencies": { "min-dash": "^3.0.0" + }, + "processmaker": { + "downstream": ["modeler"], + "command": "build" } } From 4919345b5d70d75674326c35513c691a29f6ac6a Mon Sep 17 00:00:00 2001 From: Nolan Ehrstrom Date: Wed, 9 Sep 2026 17:28:43 -0700 Subject: [PATCH 2/3] Remove processmaker.command from JS stack build metadata. Downstream cascade now reads only processmaker.downstream; packages without build-bundle skip the build step. Co-authored-by: Cursor --- package.json | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/package.json b/package.json index f902f0a..68e8e1c 100644 --- a/package.json +++ b/package.json @@ -42,7 +42,6 @@ "min-dash": "^3.0.0" }, "processmaker": { - "downstream": ["modeler"], - "command": "build" + "downstream": ["modeler"] } } From fffda83d9e494095d84497332f2cb5d761221271 Mon Sep 17 00:00:00 2001 From: Nolan Ehrstrom Date: Tue, 22 Sep 2026 14:47:47 -0700 Subject: [PATCH 3/3] Call the shared js-package workflow on main. Co-authored-by: Cursor --- .github/workflows/js-package.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/js-package.yml b/.github/workflows/js-package.yml index 9487e7b..20bb824 100644 --- a/.github/workflows/js-package.yml +++ b/.github/workflows/js-package.yml @@ -12,7 +12,7 @@ concurrency: jobs: run: - uses: ProcessMaker/.github/.github/workflows/js-package.yml@js-builds-2 + uses: ProcessMaker/.github/.github/workflows/js-package.yml@main secrets: inherit with: stack_id: ${{ github.event.pull_request.number || github.run_id }}