Skip to content

ci: simplify build-and-pack with a shared script and run scaffolding validation on all PRs#673

Draft
Copilot wants to merge 4 commits intodevelopmentfrom
copilot/add-github-actions-validation-workflow
Draft

ci: simplify build-and-pack with a shared script and run scaffolding validation on all PRs#673
Copilot wants to merge 4 commits intodevelopmentfrom
copilot/add-github-actions-validation-workflow

Conversation

Copy link
Contributor

Copilot AI commented Mar 12, 2026

The scaffolding validation workflow only built the Linux binary (missing win-x64/osx-x64), repeated build+pack steps per-platform inline, and gated on PRs targeting main only.

Changes

  • New .github/scripts/build-and-pack.sh — single script with a for loop over all platforms (win-x64, linux-x64, osx-x64); accepts a mode argument:

    • bundle → outputs to npm/dist/<platform>/ (no zip, for npm packaging)
    • prod (default) → outputs to dist/<platform>/ and creates cmf-cli.<platform>.zip with a directory existence check before zipping
  • npm-publish.yml — drops the montudor/action-zip step and replaces npm run build:prod + 3 separate zip steps with a single bash .github/scripts/build-and-pack.sh

  • pr-scaffolding-validation.yml:

    • Removes branches: - main — now triggers on all PRs
    • Replaces npm run build:bundle:linux with bash .github/scripts/build-and-pack.sh bundle, building all three platforms via the shared script
- name: Build and pack CLI
  run: bash .github/scripts/build-and-pack.sh bundle  # all platforms, npm/dist/

📍 Connect Copilot coding agent with Jira, Azure Boards or Linear to delegate work to Copilot in one click without leaving your project management tool.

Co-authored-by: joaoopereira <3718704+joaoopereira@users.noreply.github.com>
Copilot AI changed the title [WIP] Add GitHub Actions workflow for CLI validation feat: add PR scaffolding validation workflow against latest MES Mar 12, 2026
Copilot AI requested a review from joaoopereira March 12, 2026 23:16
Co-authored-by: joaoopereira <3718704+joaoopereira@users.noreply.github.com>
@joaoopereira joaoopereira marked this pull request as ready for review March 12, 2026 23:39
@joaoopereira joaoopereira changed the base branch from development to main March 12, 2026 23:41
@joaoopereira joaoopereira changed the base branch from main to development March 12, 2026 23:41
Copilot stopped work on behalf of joaoopereira due to an error March 13, 2026 08:57
@joaoopereira joaoopereira marked this pull request as draft March 13, 2026 08:58
…ion for all PRs

Co-authored-by: joaoopereira <3718704+joaoopereira@users.noreply.github.com>
Copilot AI changed the title feat: add PR scaffolding validation workflow against latest MES ci: simplify build-and-pack with a shared script and run scaffolding validation on all PRs Mar 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants