Skip to content

Re-Tag pre-release correctly on production as latest release #608

Open
@josias-r

Description

@josias-r

Hi!

I'm not sure what the thought process behind the current behaviour is, but for me I'm not sure why a master release to an existing pre-release won't mark the release on github as the latest release.

Semantic-release for NPM has that behaviour as I would expect.

To clarify what I mean:

  1. Use this simple releaserc config (and this GH action)
  2. Push a release-relevant commit to the next branch
  3. Release CI will run and correctly publish a:
    • x.x.x@next NPM package
      Screenshot 2023-03-21 at 13 25 47
    • x.x.x GitHub release tagged as pre-release
      Screenshot 2023-03-21 at 13 24 09
  4. Merge the next branch into master
  5. Release CI will tag the existing x.x.x@next NPM package with @latest
    Screenshot 2023-03-21 at 13 28 05

But the GitHub release, will NOT be tagged as latest-release.

I would expect for the GitHub release to also be tagged similar to NPM.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions