Add JS stack build workflows - #26
Merged
Merged
Conversation
When called from screen-builder, actions/checkout defaults to the caller repo, so js-stack-build.sh was missing. Checkout the workflow source repo using github.workflow_sha instead. Co-authored-by: Cursor <cursoragent@cursor.com>
github.workflow_sha resolves to the caller repo commit when triggered via workflow_dispatch, so pin the config repo branch instead. Co-authored-by: Cursor <cursoragent@cursor.com>
workflow_dispatch passes github.ref as refs/heads/<branch>, which breaks git clone --branch and can confuse the contents API. Co-authored-by: Cursor <cursoragent@cursor.com>
Downstream repos like modeler were resolving to default branch (develop) which lacks processmaker metadata. Accept trigger_branch and reuse it when the branch exists on the target repo. Co-authored-by: Cursor <cursoragent@cursor.com>
Shallow clones cannot checkout arbitrary SHAs. Use a full clone for commit refs and harden fetch_package_json when the contents API returns nothing. Co-authored-by: Cursor <cursoragent@cursor.com>
Use the GitHub raw contents API instead of base64 decoding, and read processmaker.command from package.json in the cloned repo. Co-authored-by: Cursor <cursoragent@cursor.com>
Use a single jq call in get_downstream so stdin is not consumed twice, write branch_map to a file to avoid GHA expression brace mangling, and encode pr_body with toJSON so multiline ci: tags survive reusable workflow inputs. Co-authored-by: Cursor <cursoragent@cursor.com>
The ${BRANCH_MAP:-{}} default appended a stray } to exported JSON, and
ci_map entries need object braces for jq -s add rather than from_entries.
Co-authored-by: Cursor <cursoragent@cursor.com>
Branches like modeler ci-test still use processmaker.build.command and downstream; accept either format and skip missing downstream when scanning. Co-authored-by: Cursor <cursoragent@cursor.com>
Drop legacy processmaker.build schema and per-package command config; auto-detect build-bundle from package scripts instead. Co-authored-by: Cursor <cursoragent@cursor.com>
Run the full command from package metadata when set; otherwise default to npm run build-bundle. Co-authored-by: Cursor <cursoragent@cursor.com>
Export REBUILD_CACHE and DOCKER_BUILD_NO_CACHE when the PR body contains ci:no-cache so CI image builds skip cached Docker layers. Co-authored-by: Cursor <cursoragent@cursor.com>
nolanpro
force-pushed
the
js-builds-2
branch
from
September 22, 2026 21:41
33b7985 to
3a768a4
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
@processmaker/*tarballs in dependency order.Test plan
js-builds-2branch is force-pushed, confirm this PR is up to date withmainjs-package.ymland confirm the stack workflow runsMade with Cursor