Add option to add `last-release` tag
See original GitHub issueThe last-release tag should always be on the commit with the latest (as in time, not version-number) release.
The tag is used to calculate the changes since the last release.
Currently I’m setting the tag as an extra CI-step, but this has the disadvantage that the tag will be moved whether there is a new release or not.
The best way I came up with would be to set the last-release tag in the same step the version tag for the individual release is set.
If wanted there could be a global config where this behavior could be enabled/disabled.
Issue Analytics
- State:
- Created 2 years ago
- Comments:6 (6 by maintainers)
Top Results From Across the Web
A Tutorial for Tagging Releases in Git - DEV Community
Executing this command you will create a new annotated tag identified with version v1.0.0. The command will then open up your commit editor ......
Read more >Managing releases in a repository - GitHub Docs
To the right of the list of files, click Releases. ... Click Draft a new release. ... Click Choose a tag, type a...
Read more >Git - Tagging - Git SCM
In this section, you'll learn how to list existing tags, how to create and delete tags, and what the different types of tags...
Read more >How To Create Git Tags - devconnected
You might want to create new Git tags in order to have a reference to a given release of your software. In this...
Read more >Managing releases using Git tags and semantic versioning
Setting up all the Development / Devops Tools for a New Drupal Projects: DrupalCon Portland 2022 · How to Manage Releases with Semantic ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

the downside of “moving” the “last-release” tag is that you always have to
before pushing, to update the tag locally.
To avoid that, im pushing a new tag, starting with release- , followed by a number, or a date and time like
to get the base for the next nx affected, im using
IMHO, this is a bit out of scope of versioning, and more an individual CI flow thing when / how to place a last-release tag.
Another possibility would be to “grep” for the newest version-tag (that depends on your configuration).
e.g. if you
you could also use
to get you base, and you dont have to push an extra tag at all, BUT
if a library/app fails versioning for some reason (upload fails?), you cannot retry you build.
Exactly! This can only work at the workspace level. Also, what I meant is that this is beyond semver. All kind of workflows using affected need a way of marking the last success. We could even imagine multiple tags for multiple steps:
Actually, it should be an Nx feature. 🤔 just thinking out loud, what about a hook system that could allow us to trigger an executor after nx affected…
Or maybe, we just need an Nx wrapper for the CI. npx nx-affected-and-tag --target test