Skip to content

feat(release-please): run the fork CLI from source instead of the action - #22

Closed
kojiromike wants to merge 1 commit into
mainfrom
kojiromike/release-please-fork-cli
Closed

feat(release-please): run the fork CLI from source instead of the action#22
kojiromike wants to merge 1 commit into
mainfrom
kojiromike/release-please-fork-cli

Conversation

@kojiromike

Copy link
Copy Markdown
Contributor

Switches the reusable release-please workflow from openCoreEMR/release-please-action@v5.0.0-oce.1 to installing the openCoreEMR/release-please fork CLI from source at a pinned commit.

Why: the action executes a committed dist/ bundle frozen when its tag was cut (2026-04-30). Its package.json points at the fork branch, but nothing on that branch reaches a deployed run without a dist rebuild, a new action tag, and a ref bump here — three repos to deliver one library change. The fork's new uv.lock updater (python release PRs currently bump pyproject.toml without re-locking, which broke the oce-ensora-adapter v1.0.0 image build — see oce-ensora-adapter#41) is the change stuck behind exactly that chain.

How: npm install github:openCoreEMR/release-please#<sha> compiles the CLI from source via the package's prepare script, so the workflow runs exactly the pinned commit (69f51b7, current tip of feat/annotated-tags-and-preview) and future fork changes ship by bumping one SHA in this file. Tags are cut with the fork's --annotated-tag flag. The workflow's output contract is unchanged — releases_created, release_created, tag_name, version, paths_released are reproduced from the fork's --dry-run --json preview taken immediately before the real github-release run (the real run prints only Node object-inspect output).

Follow-ups this unblocks: once merged and a release PR in oce-ensora-adapter demonstrably bumps uv.lock, its Dockerfile's uv sync --frozen can revert to --locked (the fail-closed check that would have caught the v1.0.0 bug). oce-api-harness pins the action directly in its own release-please.yml and can either adopt this reusable workflow or make the same switch.

Gate: actionlint clean, yq parse clean. Empirical check owed on the first real release through a caller: the preview-derived outputs and the annotated tag.

The reusable workflow ran openCoreEMR/release-please-action@v5.0.0-oce.1,
which executes a committed dist/ bundle frozen when the tag was cut
(2026-04-30). Its package.json names the fork branch, but branch changes
never reach a deployed run — the fork's uv.lock updater (which fixes
python release PRs shipping a stale lockfile, the oce-ensora-adapter
v1.0.0 no-image bug) sat undeliverable behind a dist rebuild + retag +
ref bump in three repos.

Install the fork CLI from source at a pinned commit instead: npm runs
the package's prepare script at install time, so the workflow executes
exactly the pinned commit and a fork change ships by bumping one SHA in
one file. Tags are cut with the fork's --annotated-tag flag; the action's
output contract (releases_created, release_created, tag_name, version,
paths_released) is reproduced from the fork's --dry-run --json preview
taken immediately before the real run, since the real run prints only
Node object-inspect output.

Gate: actionlint — clean (exit 0); yq parse — clean.

Assisted-by: Claude Code
@kojiromike

Copy link
Copy Markdown
Contributor Author

Rejected by maintainer — wrong approach. Superseded by a new release of release-please-action with a rebuilt dist; the reusable workflow gets a one-line tag bump instead. Leaving for Michael to close.

@kojiromike kojiromike closed this Aug 27, 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.

1 participant