@zarpay/zar-cdk-lib - v0.32.0
    Preparing search index...

    Function validateReleaseTag

    • Ensures the image version is a valid semantic version of the form {prefix}MAJOR.MINOR.PATCH.

      Parameters

      • scope: Construct

        The construct scope for error annotations

      • imageVersion: string

        The version string to validate

      • prefix: string = 'v'

        The prefix before semver (default: 'v'). Examples: 'v', 'backend-v'

      Returns void

      // Default prefix 'v' - validates v1.2.3
      validateReleaseTag(this, imageVersion);

      // Custom prefix - validates backend-v1.2.3
      validateReleaseTag(this, imageVersion, 'backend-v');