Skip to content

Replicate continuous release in non-GitHub actions Environment #3298

Closed Answered by mrgrain
automartin5000 asked this question in Q&A
Discussion options

You must be logged in to vote
  1. How does that work in an environment with protected main branches?

You'll need permissions to add a tag to the main branch. This isn't really a huge problem in my experience, but there are multiple ways of solving it. https://github.com/projen/projen has a protected main branch with "Do not allow bypassing the above settings" enabled. Tags are created via GitHub Releases, which uses unrelated permissions.

  1. Wouldn't it make more sense for the tag to be applied when the PR is open on the head of the branch? You would then continuously move the tag on each commit. That way, when you merge, you have a pre-tagged branch, a pre-built dist, and all you need to do is publish. The only thing …

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@automartin5000
Comment options

@mrgrain
Comment options

@automartin5000
Comment options

@automartin5000
Comment options

@automartin5000
Comment options

Answer selected by mrgrain
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants