Skip to content

Would it be possible to "allow updates only for drafts and prereleases"? #219

@panayot-cankov

Description

@panayot-cankov

This is the release cycle for one of my projects. I have multiple packages in a monorepo. For the release of any of the packages a new release branch is created and release dispatch workflow is triggered:

  • Add commits with package version update, changelogs, etc.
  • The workflow would build the package artefacts
  • Create (or update for fixes) a draft release and attach the artefacts
  • Run e2e tests
  • Go to code freeze, have a release candidate, manual testing etc.
  • On bug fixes, commits are pushed in the release branch, the old workflow is deleted and triggered again with the last commit (go back to 2 - build, update the draft etc.)
  • Require approval for publish
  • Upload the artefacts to a marketplace
  • Update the draft to an official release, apply tags.
  • Make a PR, merge any fixes in main

This plugin works really well, from my point of view, there only two things that are coming a bit short:

  • Add a flag to allow updates only on draft and prereleases, and error the build when trying to update a release. Protect existing releases from being overridden from release builds triggered by mistake. Once things go to NPM there is no going back.
  • By default the tags to target the current commit (the one that the git checkout would get) instead of the main branch.

    There is a commit option, that I will be setting for this, but wouldn't that be a bit more reasonable default?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions