chore: migrate release pipeline from @jscutlery/semver to nx release#97
Merged
lukascivil merged 1 commit intomasterfrom Apr 24, 2026
Merged
chore: migrate release pipeline from @jscutlery/semver to nx release#97lukascivil merged 1 commit intomasterfrom
lukascivil merged 1 commit intomasterfrom
Conversation
2 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Objective
Replace the
@jscutlery/semver+ngx-deploy-npmrelease pipeline with Nx's built-innx release, consolidating version bump, changelog, git tag/push, GitHub release, and npm publish into a single command while preserving the existing conventional-commits-driven, per-project semver behavior.What was done
nx.json→releasewithprojects: ["json-difference", "json-difference-cli"],projectsRelationship: "independent",releaseTagPattern: "{projectName}-{version}", per-project changelogs with GitHub release creation, and git commit/tag/push enabled.release.conventionalCommits.typessofeat→ minor,fix/docs/chore/refactor→ patch, keeping parity with the prior@jscutlery/semverbehavior.version,github, andnpmexecutor targets fromlibs/json-difference/project.jsonandlibs/json-difference-cli/project.json—nx releasenow drives these.package.jsonrelease/release:dry-runscripts to callyarn nx release(with--dry-runwhen previewing) and dropped@jscutlery/semver,ngx-deploy-npm, andconventional-changelog-conventionalcommitsfromdevDependencies(with matchingyarn.lockcleanup)..github/workflows/release-and-publish.ymlto invokeyarn nx release --yeswith explicit--projects=and--dry-runflag handling, and removed the now-unusednrwl/nx-set-shasstep.CLAUDE.mdto describe the newnx releasepipeline, the tag pattern, and the semver-bump mapping.Test plan
yarn release:dry-run --projects=json-differencelocally and confirm the planned version bump, changelog, and tag match expectations.release-and-publishworkflow withdry_run=trueandname=all, verify it runsnx release --yes --dry-runcleanly with no publish side effects.dry_run=trueandname=json-difference, confirm the--projects=json-differenceflag is forwarded.{projectName}-{version}git tag, the GitHub release, and the npm publish all succeed end-to-end.