👷 ci(circleci): simplify nextsv version calculation (#156)

- remove package-specific flag to streamline version calculation process
- ensure consistent behavior across different release scenarios

Signed-off-by: Jeremiah Russell <jerry@jrussell.ie>
This commit is contained in:
Jeremiah Russell
2026-02-13 09:28:20 +00:00
committed by GitHub
2 changed files with 4 additions and 2 deletions

View File

@@ -451,10 +451,10 @@ jobs:
CRATE_VERSION="$VERSION_OVERRIDE" CRATE_VERSION="$VERSION_OVERRIDE"
echo "Result: Will release version $CRATE_VERSION (OVERRIDE)" echo "Result: Will release version $CRATE_VERSION (OVERRIDE)"
echo "Note: Version explicitly set via crate_version parameter" echo "Note: Version explicitly set via crate_version parameter"
NEXTSV_VERSION=$(nextsv -bn calculate --package cull-gmail 2>/dev/null || echo "none") NEXTSV_VERSION=$(nextsv -bn calculate 2>/dev/null || echo "none")
echo " (nextsv would have calculated: $NEXTSV_VERSION)" echo " (nextsv would have calculated: $NEXTSV_VERSION)"
else else
CRATE_VERSION=$(nextsv -bn calculate --package cull-gmail 2>/dev/null || echo "") CRATE_VERSION=$(nextsv -bn calculate 2>/dev/null || echo "")
if [ -z "$CRATE_VERSION" ]; then if [ -z "$CRATE_VERSION" ]; then
CRATE_VERSION="none" CRATE_VERSION="none"
echo "Result: No crate release needed" echo "Result: No crate release needed"

View File

@@ -21,6 +21,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- ci-enable update_pcu in label job to test fix(pr [#135]) - ci-enable update_pcu in label job to test fix(pr [#135])
- 👷 ci(circleci)-add release configuration for automated deployment(pr [#154]) - 👷 ci(circleci)-add release configuration for automated deployment(pr [#154])
- 👷 ci(circleci)-update release workflow configuration(pr [#155]) - 👷 ci(circleci)-update release workflow configuration(pr [#155])
- 👷 ci(circleci)-simplify nextsv version calculation(pr [#156])
### Fixed ### Fixed
@@ -441,6 +442,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
[#153]: https://github.com/jerus-org/cull-gmail/pull/153 [#153]: https://github.com/jerus-org/cull-gmail/pull/153
[#154]: https://github.com/jerus-org/cull-gmail/pull/154 [#154]: https://github.com/jerus-org/cull-gmail/pull/154
[#155]: https://github.com/jerus-org/cull-gmail/pull/155 [#155]: https://github.com/jerus-org/cull-gmail/pull/155
[#156]: https://github.com/jerus-org/cull-gmail/pull/156
[Unreleased]: https://github.com/jerus-org/cull-gmail/compare/v0.0.16...HEAD [Unreleased]: https://github.com/jerus-org/cull-gmail/compare/v0.0.16...HEAD
[0.0.16]: https://github.com/jerus-org/cull-gmail/compare/v0.0.15...v0.0.16 [0.0.16]: https://github.com/jerus-org/cull-gmail/compare/v0.0.15...v0.0.16
[0.0.15]: https://github.com/jerus-org/cull-gmail/compare/v0.0.14...v0.0.15 [0.0.15]: https://github.com/jerus-org/cull-gmail/compare/v0.0.14...v0.0.15