From 993f4f4b5e92b7d236abd999b8b4f64e1f401c71 Mon Sep 17 00:00:00 2001 From: Nolan Ehrstrom Date: Wed, 9 Sep 2026 16:57:09 -0700 Subject: [PATCH 1/4] 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 | 6 +++++- 2 files changed, 27 insertions(+), 1 deletion(-) 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 00000000..9487e7bd --- /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 c49272c6..abe4966f 100644 --- a/package.json +++ b/package.json @@ -135,5 +135,9 @@ "dist/*", "src/*", "index.d.ts" - ] + ], + "processmaker": { + "downstream": ["vue-form-elements"], + "command": "build" + } } From 55eb132335808d3a240aa19739d4e3ecb8099e8e Mon Sep 17 00:00:00 2001 From: Nolan Ehrstrom Date: Wed, 9 Sep 2026 17:28:40 -0700 Subject: [PATCH 2/4] Standardize JS stack build metadata on downstream only. Add build-bundle script proxying to build and remove processmaker.command so CI can use a single build command. Co-authored-by: Cursor --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index abe4966f..56ead152 100644 --- a/package.json +++ b/package.json @@ -9,6 +9,7 @@ "lint": "eslint --ext .js,.vue src tests/unit", "dev": "vite", "build": "vite build", + "build-bundle": "npm run build", "preview": "vite preview", "bundle:dist": "rm -rf dist && webpack --config build/webpack.bundle.conf.js", "bundle": "node build/bundle.js", @@ -137,7 +138,6 @@ "index.d.ts" ], "processmaker": { - "downstream": ["vue-form-elements"], - "command": "build" + "downstream": ["vue-form-elements"] } } From 2e06696f31a89fefd4b71f0c8ee6d58fb271ad36 Mon Sep 17 00:00:00 2001 From: Nolan Ehrstrom Date: Wed, 9 Sep 2026 17:33:25 -0700 Subject: [PATCH 3/4] Use processmaker.build for yarn-based JS stack builds. Remove the build-bundle proxy and declare yarn build as the package-specific build command. Co-authored-by: Cursor --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 56ead152..7c8ac339 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,6 @@ "lint": "eslint --ext .js,.vue src tests/unit", "dev": "vite", "build": "vite build", - "build-bundle": "npm run build", "preview": "vite preview", "bundle:dist": "rm -rf dist && webpack --config build/webpack.bundle.conf.js", "bundle": "node build/bundle.js", @@ -138,6 +137,7 @@ "index.d.ts" ], "processmaker": { - "downstream": ["vue-form-elements"] + "downstream": ["vue-form-elements"], + "build": "yarn build" } } From 8b94efcef710d9820287a126ab675def9f2f7863 Mon Sep 17 00:00:00 2001 From: Nolan Ehrstrom Date: Tue, 22 Sep 2026 14:47:44 -0700 Subject: [PATCH 4/4] 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 9487e7bd..20bb8243 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 }}