Skip to content

feat(ci): replace single release-please config with dual prerelease/stable setup#368

Merged
skevetter merged 1 commit into
mainfrom
a982-fix-promote-manifest
May 19, 2026
Merged

feat(ci): replace single release-please config with dual prerelease/stable setup#368
skevetter merged 1 commit into
mainfrom
a982-fix-promote-manifest

Conversation

@skevetter

@skevetter skevetter commented May 19, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Replaces the single release-please-config.json + promote-release.yml approach with a native release-please dual-config setup
  • Prerelease track: .github/prerelease-config.json + release-please-prerelease.yml — produces RC tags on every push to main (auto-merged)
  • Stable track: .github/release-config.json + release-please-stable.yml — produces stable releases via manual workflow_dispatch
  • Separate manifests (.release-please-manifest.json for RC, .release-please-manifest-stable.json for stable) to avoid version-tracking conflicts
  • Separate PR labels (autorelease: stable / autorelease: stable-tagged) to prevent collision with RC PRs
  • Separate changelog (CHANGELOG-stable.md) for stable releases
  • release.yml (build workflow) still triggers automatically via release: published event — no manual trigger needed
  • promote-release.yml removed (replaced by native stable release-please workflow)

Summary by CodeRabbit

Release Notes

  • Chores
    • Updated release automation infrastructure to streamline the stable release process.
    • Version updated to 1.3.0.

Review Change Stack

@netlify

netlify Bot commented May 19, 2026

Copy link
Copy Markdown

Deploy Preview for devsydev canceled.

Name Link
🔨 Latest commit 7bdd047
🔍 Latest deploy log https://app.netlify.com/projects/devsydev/deploys/6a0baf430344fe000830dd70

@coderabbitai

coderabbitai Bot commented May 19, 2026

Copy link
Copy Markdown

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 71aa5a38-6c02-4e14-bdc8-3f890f61b42a

📥 Commits

Reviewing files that changed from the base of the PR and between ade278c and 7bdd047.

📒 Files selected for processing (6)
  • .github/prerelease-config.json
  • .github/release-config.json
  • .github/workflows/promote-release.yml
  • .github/workflows/release-please-prerelease.yml
  • .github/workflows/release-please-stable.yml
  • .release-please-manifest-stable.json
💤 Files with no reviewable changes (1)
  • .github/workflows/promote-release.yml

📝 Walkthrough

Walkthrough

PR replaces the manual RC-to-stable release promotion workflow with automated Release Please-based stable release management. Introduces stable release configuration and manifest files, adds a new Release Please stable workflow dispatched manually, and updates the prerelease workflow to reference dedicated prerelease configuration.

Changes

Stable Release Automation

Layer / File(s) Summary
Stable release configuration
.github/release-config.json, .release-please-manifest-stable.json
release-config.json defines Release Please schema, labeling (autorelease: stable/stable-tagged), Go component versioning with devsy component name, non-prerelease behavior, and CHANGELOG-stable.md path; .release-please-manifest-stable.json initializes root package version to 1.3.0.
Release automation workflows
.github/workflows/release-please-stable.yml, .github/workflows/release-please-prerelease.yml
New release-please-stable.yml workflow dispatches manually, obtains GitHub App token, and invokes Release Please action with stable config and manifest. Prerelease workflow updated to explicitly reference .github/prerelease-config.json instead of shared config, with job name clarified to "Release Please (Prerelease)".

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~12 minutes

Possibly related PRs

  • devsy-org/devsy#353: Both PRs touch .github/workflows/promote-release.yml, with this PR removing it while the related PR modified its make_latest handling.
  • devsy-org/devsy#345: This PR removes the RC→stable promotion workflow while the related PR previously modified its release notes rewriting logic.
  • devsy-org/devsy#344: Both PRs modify .github/workflows/promote-release.yml—this PR removes it entirely while the related PR changed --latest flag behavior in that workflow.

Suggested labels

size/m

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately and specifically describes the main change: replacing a single release-please configuration with a dual prerelease/stable setup, which directly aligns with the changeset.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

…table setup

Split the release-please configuration into two independent tracks:
- Prerelease track (push to main): creates RC releases with auto-merge
- Stable track (workflow_dispatch): creates stable releases on demand

This eliminates the promote-release.yml workaround that re-tagged RC commits
as stable releases. Instead, release-please natively manages both version
tracks with separate configs, manifests, labels, and changelog paths.
@skevetter skevetter force-pushed the a982-fix-promote-manifest branch from f5cb398 to 7bdd047 Compare May 19, 2026 00:30
@skevetter skevetter marked this pull request as ready for review May 19, 2026 00:40
@coderabbitai coderabbitai Bot added the size/m label May 19, 2026
@skevetter skevetter merged commit d985356 into main May 19, 2026
16 checks passed
@skevetter skevetter deleted the a982-fix-promote-manifest branch May 19, 2026 00:43
devsy-app Bot pushed a commit that referenced this pull request May 19, 2026
# [1.4.0-rc.1](v1.3.0...v1.4.0-rc.1) (2026-05-19)

### Bug Fixes

* **ci:** add package-lock.json for semantic-release workflow ([bcd9208](bcd9208))
* **ci:** add signed commit config and create-release-pr workflow ([c89325a](c89325a))
* **ci:** advance prerelease manifest past stable release ([#372](#372)) ([33a9d44](33a9d44))
* **ci:** pass app token via token input for softprops/action-gh-release ([#361](#361)) ([77a9373](77a9373)), closes [softprops/action-#release](https://github.com/softprops/action-/issues/release)
* **ci:** re-add changelog and git plugins with signed commit support ([#375](#375)) ([ad6e3f9](ad6e3f9))
* **ci:** remove @semantic-release/git plugin that can't push to protected branch ([c3bf35c](c3bf35c))
* **ci:** remove @semantic-release/git plugin that cannot push to signature-protected branch ([e971f37](e971f37))
* **ci:** resolve semantic-release tag conflict and add changelog+git plugins ([d80ae42](d80ae42))
* update workspace_result.json paths on workspace rename ([#369](#369)) ([f06f4ba](f06f4ba))

### Features

* auto-overwrite stale agent binary and workspace clean command ([#364](#364)) ([76841a4](76841a4))
* **ci:** enable autoMergeRequest in release-please action ([#363](#363)) ([2f889bb](2f889bb))
* **ci:** migrate from release-please to semantic-release ([#374](#374)) ([9fcceef](9fcceef))
* **ci:** replace single release-please config with dual prerelease/stable setup ([#368](#368)) ([d985356](d985356))
skevetter added a commit that referenced this pull request May 19, 2026
* fix(ci): pass app token via token input for softprops/action-gh-release (#361)

softprops/action-gh-release@v3 reads the token from INPUT_TOKEN (set by
the 'token' action input) before falling back to GITHUB_TOKEN. Setting
env.GITHUB_TOKEN did not override INPUT_TOKEN so the action used the
default GITHUB_TOKEN instead of the app-token, causing the 403.

* feat(ci): enable autoMergeRequest in release-please action (#363)

Adds autoMergeRequest: true to the googleapis/release-please-action step
so that release-please PRs auto-merge after CI passes.

* chore(main): release 1.3.0-rc.19 (#362)

Co-authored-by: devsy-app[bot] <277138668+devsy-app[bot]@users.noreply.github.com>

* feat: auto-overwrite stale agent binary and workspace clean command (#364)

* feat: auto-overwrite agent binary on version mismatch in Docker delivery

When the named Docker volume already contains an agent binary with a
different version, force-overwrite it instead of leaving the stale
binary in place. Logs an INFO message with the old and new versions.
If versions match, skip re-delivery entirely as an optimization.

* feat: add `devsy workspace clean` subcommand

Adds a command to remove the agent binary from the Docker named volume
for a workspace, forcing a fresh injection on next start. Useful when
the binary becomes stale and the automatic version-mismatch detection
is not sufficient.

* fix: extract docker command string to constant (goconst lint)

* chore(ci): tidy workflow comments (#365)

* chore(main): release 1.3.0-rc.20 (#366)

Co-authored-by: devsy-app[bot] <277138668+devsy-app[bot]@users.noreply.github.com>

* feat(ci): replace single release-please config with dual prerelease/stable setup (#368)

Split the release-please configuration into two independent tracks:
- Prerelease track (push to main): creates RC releases with auto-merge
- Stable track (workflow_dispatch): creates stable releases on demand

This eliminates the promote-release.yml workaround that re-tagged RC commits
as stable releases. Instead, release-please natively manages both version
tracks with separate configs, manifests, labels, and changelog paths.

* chore(main): release 1.3.0-rc.21 (#370)

Co-authored-by: devsy-app[bot] <277138668+devsy-app[bot]@users.noreply.github.com>

* fix(ci): advance prerelease manifest past stable release (#372)

* fix: update workspace_result.json paths on workspace rename (#369)

* fix: update workspace_result.json paths on workspace rename

After renaming a workspace, the cached workspace_result.json still
referenced the old workspace name in ContainerWorkspaceFolder,
LocalWorkspaceFolder, and WorkspaceMount paths. This caused the
container's working directory to point to /workspaces/<old-name>
which doesn't exist, breaking exec and SSH into the workspace.

* fix: also update MergedConfig.WorkspaceMount on workspace rename

Closes a gap where MergedConfig.WorkspaceMount (a *string field) was
not being rewritten during rename, leaving a stale mount path in the
cached result.

* refactor: derive workspace parent dirs dynamically in path replacer

Instead of hardcoding `/workspaces` as the container workspace parent
directory, derive it from SubstitutionContext.ContainerWorkspaceFolder
by stripping the basename. Similarly derive the host parent from
LocalWorkspaceFolder. This makes the rename path replacer work
correctly for devcontainers that use a non-default workspaceFolder.

* test: add unit tests for workspace rename path replacement

* test: add e2e tests for workspace rename path updates

Integration tests verifying that updateWorkspaceResult correctly
rewrites ContainerWorkspaceFolder, LocalWorkspaceFolder, WorkspaceMount
in SubstitutionContext and MergedConfig after a workspace rename.

Covers: basic rename, non-default workspace dirs, nested paths,
same-name idempotent rename, nil MergedConfig/WorkspaceMount, missing
result file, and raw JSON roundtrip.

* fix(lint): wire up testContainerOldWS, testLocalOldWS, testContainerApp, testContainerOld constants

Linter introduced constants but left self-referential definitions and
bare literals in test bodies. Fix init cycles and use constants throughout.

* fix(lint): extract repeated /workspaces/ws-old literal to testContainerWSMount constant

* chore(main): release 1.4.0-rc.1 (#373)

Co-authored-by: devsy-app[bot] <277138668+devsy-app[bot]@users.noreply.github.com>

* feat(ci): migrate from release-please to semantic-release (#374)

Replace the dual release-please prerelease/stable configuration with a
single semantic-release setup for simplicity.

- Add .releaserc.json with commit-analyzer, release-notes-generator,
  changelog, github, and git plugins
- Add semantic-release.yml workflow (push to main → RC, push to
  release → stable, plus dry-run workflow_dispatch)
- Remove release-please workflows, configs, and manifests
- Add semantic-release devDependencies to package.json

* fix(ci): add package-lock.json for semantic-release workflow

The semantic-release workflow uses actions/setup-node with npm caching,
which requires a lock file to be present. Also switches from npm install
to npm ci for reproducible CI builds.

---------

Co-authored-by: Samuel K <skevetter@pm.me>
Co-authored-by: devsy-app[bot] <277138668+devsy-app[bot]@users.noreply.github.com>
skevetter added a commit that referenced this pull request May 19, 2026
* fix(ci): pass app token via token input for softprops/action-gh-release (#361)

softprops/action-gh-release@v3 reads the token from INPUT_TOKEN (set by
the 'token' action input) before falling back to GITHUB_TOKEN. Setting
env.GITHUB_TOKEN did not override INPUT_TOKEN so the action used the
default GITHUB_TOKEN instead of the app-token, causing the 403.

* feat(ci): enable autoMergeRequest in release-please action (#363)

Adds autoMergeRequest: true to the googleapis/release-please-action step
so that release-please PRs auto-merge after CI passes.

* chore(main): release 1.3.0-rc.19 (#362)

Co-authored-by: devsy-app[bot] <277138668+devsy-app[bot]@users.noreply.github.com>

* feat: auto-overwrite stale agent binary and workspace clean command (#364)

* feat: auto-overwrite agent binary on version mismatch in Docker delivery

When the named Docker volume already contains an agent binary with a
different version, force-overwrite it instead of leaving the stale
binary in place. Logs an INFO message with the old and new versions.
If versions match, skip re-delivery entirely as an optimization.

* feat: add `devsy workspace clean` subcommand

Adds a command to remove the agent binary from the Docker named volume
for a workspace, forcing a fresh injection on next start. Useful when
the binary becomes stale and the automatic version-mismatch detection
is not sufficient.

* fix: extract docker command string to constant (goconst lint)

* chore(ci): tidy workflow comments (#365)

* chore(main): release 1.3.0-rc.20 (#366)

Co-authored-by: devsy-app[bot] <277138668+devsy-app[bot]@users.noreply.github.com>

* feat(ci): replace single release-please config with dual prerelease/stable setup (#368)

Split the release-please configuration into two independent tracks:
- Prerelease track (push to main): creates RC releases with auto-merge
- Stable track (workflow_dispatch): creates stable releases on demand

This eliminates the promote-release.yml workaround that re-tagged RC commits
as stable releases. Instead, release-please natively manages both version
tracks with separate configs, manifests, labels, and changelog paths.

* chore(main): release 1.3.0-rc.21 (#370)

Co-authored-by: devsy-app[bot] <277138668+devsy-app[bot]@users.noreply.github.com>

* fix(ci): advance prerelease manifest past stable release (#372)

* fix: update workspace_result.json paths on workspace rename (#369)

* fix: update workspace_result.json paths on workspace rename

After renaming a workspace, the cached workspace_result.json still
referenced the old workspace name in ContainerWorkspaceFolder,
LocalWorkspaceFolder, and WorkspaceMount paths. This caused the
container's working directory to point to /workspaces/<old-name>
which doesn't exist, breaking exec and SSH into the workspace.

* fix: also update MergedConfig.WorkspaceMount on workspace rename

Closes a gap where MergedConfig.WorkspaceMount (a *string field) was
not being rewritten during rename, leaving a stale mount path in the
cached result.

* refactor: derive workspace parent dirs dynamically in path replacer

Instead of hardcoding `/workspaces` as the container workspace parent
directory, derive it from SubstitutionContext.ContainerWorkspaceFolder
by stripping the basename. Similarly derive the host parent from
LocalWorkspaceFolder. This makes the rename path replacer work
correctly for devcontainers that use a non-default workspaceFolder.

* test: add unit tests for workspace rename path replacement

* test: add e2e tests for workspace rename path updates

Integration tests verifying that updateWorkspaceResult correctly
rewrites ContainerWorkspaceFolder, LocalWorkspaceFolder, WorkspaceMount
in SubstitutionContext and MergedConfig after a workspace rename.

Covers: basic rename, non-default workspace dirs, nested paths,
same-name idempotent rename, nil MergedConfig/WorkspaceMount, missing
result file, and raw JSON roundtrip.

* fix(lint): wire up testContainerOldWS, testLocalOldWS, testContainerApp, testContainerOld constants

Linter introduced constants but left self-referential definitions and
bare literals in test bodies. Fix init cycles and use constants throughout.

* fix(lint): extract repeated /workspaces/ws-old literal to testContainerWSMount constant

* chore(main): release 1.4.0-rc.1 (#373)

Co-authored-by: devsy-app[bot] <277138668+devsy-app[bot]@users.noreply.github.com>

* feat(ci): migrate from release-please to semantic-release (#374)

Replace the dual release-please prerelease/stable configuration with a
single semantic-release setup for simplicity.

- Add .releaserc.json with commit-analyzer, release-notes-generator,
  changelog, github, and git plugins
- Add semantic-release.yml workflow (push to main → RC, push to
  release → stable, plus dry-run workflow_dispatch)
- Remove release-please workflows, configs, and manifests
- Add semantic-release devDependencies to package.json

* fix(ci): add package-lock.json for semantic-release workflow

The semantic-release workflow uses actions/setup-node with npm caching,
which requires a lock file to be present. Also switches from npm install
to npm ci for reproducible CI builds.

---------

Co-authored-by: devsy-app[bot] <277138668+devsy-app[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant