Skip to content

build: move dist/ bundling to release time#245

Draft
edmundmiller wants to merge 2 commits into
masterfrom
release-time-dist
Draft

build: move dist/ bundling to release time#245
edmundmiller wants to merge 2 commits into
masterfrom
release-time-dist

Conversation

@edmundmiller

Copy link
Copy Markdown
Collaborator

Summary

Removes the committed dist/ bundle from master and moves bundling to a dispatch-driven release workflow.

  • master becomes source-only; dist/ is gitignored
  • New release.yml (workflow_dispatch, master-only, concurrency-guarded): builds dist/, smoke-tests the bundle, creates a release commit carrying dist/, tags immutable vX.Y.Z + floating v2 at that commit, and publishes the GitHub Release targeting it
  • Drops the git diff --exit-code dist/ CI step and stale release: published triggers from test.yml/example.yml

Motivation

Renovate PRs touching bundled code (e.g. #228, #232, #239) perpetually fail CI on the stale-dist check, which blocks the configured branch automerge. Removing dist/ from master eliminates that failure class entirely and gets rid of unreviewable 35k-line bundle diffs.

Breaking change

@master stops working as an action ref (no bundle on master). README already documents @v2 only. Anyone pinned to @master must switch to @v2.

Release process after this PR

  1. Run the Release workflow from the Actions tab (master), input e.g. v2.1.0
  2. The workflow builds, tags, moves v2, and publishes the release — one button press

Testing

  • example.yml jobs still build from source (npm run package) and use ./, unaffected
  • Release workflow includes node --check dist/index.js smoke test before tagging

- Remove committed dist/ from master; master is now source-only
- Add dispatch-driven release workflow that builds dist/, creates a
  release commit carrying the bundle, tags vX.Y.Z + floating v2, and
  publishes the GitHub Release targeting that commit
- Drop the 'Check dist is up to date' CI step and stale release
  triggers; renovate PRs no longer fail on stale bundles

Users consume @v2 / @vX.Y.Z tags; @master is not a usable action ref.
- Release workflow now force-moves both vX and vX.Y tags, matching the
  existing tag scheme (v3, v3.0, v3.0.1)
- Replace the manual orphan-branch build instructions in CONTRIBUTING
  with the dispatch-driven workflow procedure
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.

1 participant