Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(core): independent nx releases and automated git operations #20191

Merged
merged 13 commits into from
Nov 17, 2023

Conversation

JamesHenry
Copy link
Collaborator

@JamesHenry JamesHenry commented Nov 10, 2023

  • Automated git operations for committing and tagging during nx release command executions
    • They are configurable via both nx.json config and command line arguments
    • They are usable via both the version and changelog subcommands for maximum flexibility
  • Independent project support for nx release commands
    • Fixes some existing bugs/footguns around filtering projects
    • Adds first class support for independently released projects (including integrating them with the new automated git operations)
  • Updates the nx-schema with all the relevant changes/additions for the above

Copy link

vercel bot commented Nov 10, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment
Name Status Preview Updated (UTC)
nx-dev ⬜️ Ignored (Inspect) Visit Preview Nov 17, 2023 0:43am

@JamesHenry JamesHenry changed the title chore(core): independent nx releases and git operations chore(core): independent nx releases and automated git operations Nov 13, 2023
@@ -602,7 +602,7 @@ describe('nx release', () => {



> NX Previewing a Github release and an entry in {project-name}/CHANGELOG.md for {project-name}@v1000.0.0-next.0
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This behaviour was previously incorrect

@@ -213,6 +243,8 @@ To fix this you will either need to add a package.json file at that location, or
break;
}

// TODO: reevaluate this logic/workflow for independent projects
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@fahslaj will reevaluate prerelease graduation in a follow up

@JamesHenry JamesHenry changed the title chore(core): independent nx releases and automated git operations feat(core): independent nx releases and automated git operations Nov 13, 2023
@JamesHenry JamesHenry marked this pull request as ready for review November 13, 2023 18:17
@@ -172,12 +172,6 @@ const changelogCommand: CommandModule<NxReleaseArgs, ChangelogOptions> = {
'Alternate git remote in the form {user}/{repo} on which to create the Github release (useful for testing)',
default: 'origin',
})
.option('tagVersionPrefix', {
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was mistakenly left in from previous work

@JamesHenry JamesHenry enabled auto-merge (squash) November 17, 2023 13:36
@JamesHenry JamesHenry merged commit dc8c0ed into nrwl:master Nov 17, 2023
6 checks passed
@JamesHenry JamesHenry deleted the independent-releases branch November 19, 2023 10:29
Copy link

This pull request has already been merged/closed. If you experience issues related to these changes, please open a new issue referencing this pull request.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 25, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants