iya-sts
    Preparing search index...

    Function releaseFrom

    • Decides the release a STAMPED build carries: STS_VERSION_RELEASE when it is set (a build of main, whose patch the workflow worked out from the repository's tags), otherwise VERSION's — exactly as before it existed.

      It must be M.N.O exactly, by the same expression VERSION is read with; anything else is refused rather than read as VERSION's, because a build of main that quietly stamped the wrong release would publish under the wrong tag.

      Parameters

      • env: any

        the environment to read, process.env when omitted

      Returns
          | { ok: boolean; parts?: undefined; problem: string }
          | {
              ok: boolean;
              parts: { major: string; minor: string; patch: string };
              problem?: undefined;
          }

      { ok: true, parts }, where parts is { major, minor, patch } or null when the variable is unset or empty, or { ok: false, problem }