Skip to content

Beta Tags Wrong Version: #72

@bh2smith

Description

@bh2smith

This PR #71 triggered a beta build with the wrong BASE_VERSION (0.0.1).

https://www.npmjs.com/package/make-agent/v/0.0.1-ajv-error-f93363f

Code is here:

BRANCH_NAME=${GITHUB_REF#refs/heads/}
BRANCH_NAME=${BRANCH_NAME//\//-} # Replace slashes with dashes
SHORT_SHA=$(git rev-parse --short HEAD)
# Get the latest version tag and increment patch
LATEST_TAG=$(git describe --tags --abbrev=0 2>/dev/null || echo "v0.0.0")
LATEST_VERSION=${LATEST_TAG#v} # Remove 'v' prefix
# Split version into major.minor.patch
IFS='.' read -r major minor patch <<< "$LATEST_VERSION"
# Increment patch version
patch=$((patch + 1))
BASE_VERSION="${major}.${minor}.${patch}"

Introduced in #60

Original Issue: #56 (should be reopened).

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions