Skip to content

chore: stage sync-versions output in the lerna version lifecycle - #111

Merged
pyramation merged 1 commit into
mainfrom
feat/version-lifecycle-stage-generated
Aug 1, 2026
Merged

chore: stage sync-versions output in the lerna version lifecycle#111
pyramation merged 1 commit into
mainfrom
feat/version-lifecycle-stage-generated

Conversation

@pyramation

Copy link
Copy Markdown
Contributor

Summary

Same fix as constructive-platform: the root version lifecycle regenerates .control, Makefile, and sql/<mod>--<ver>.{sql,bundle.tar.gz} via pgpm sync-versions, but lerna only stages the files it manages (package.json / lerna.json / changelogs) when it commits. So after a release those regenerated files are published but left uncommitted/untagged in git.

lerna runs the version lifecycle before committing and commits the index, so having the lifecycle stage its own output pulls the files into the release commit:

- "version": "pgpm sync-versions"
+ "version": "pgpm sync-versions && git add -A"

lerna requires a clean tree before versioning, so git add -A only captures what sync-versions produced.

Link to Devin session: https://app.devin.ai/sessions/a36069d7d4bc40328567bb0caa9ba250
Requested by: @pyramation

lerna runs the "version" lifecycle before committing, then git-adds only the
files it manages (package.json/lerna.json/changelogs). The .control, Makefile,
and sql/<mod>--<ver>.{sql,bundle.tar.gz} files that pgpm sync-versions
regenerates were left uncommitted after publish. Stage them so they land in the
same release commit/tag.
@pyramation pyramation self-assigned this Aug 1, 2026
@devin-ai-integration

Copy link
Copy Markdown

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR. Add '(aside)' to your comment to have me ignore it.
  • Look at CI failures and help fix them

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment, CI, and merge conflict monitoring

@pyramation
pyramation merged commit 19c6ea9 into main Aug 1, 2026
25 checks passed
@pyramation
pyramation deleted the feat/version-lifecycle-stage-generated branch August 1, 2026 01:05
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