Replies: 2 comments 1 reply
-
Hey, @jbcpollak. There are two ways you can perform such a release. LocalYou can branch from release/src/utils/git/getTags.ts Line 7 in dcfa47c
And then sorting them, so the latest one is always the first one: release/src/utils/git/getLatestRelease.ts Line 11 in dcfa47c Finding RemoteOn remote, you follow the same procedure apart from the last publishing step, as it's usually integrated in your CI. The only issue is that once Release sees a new My initial idea was to suggest you trigger the release job manually and select a specific branch to do the release from (can do that from the GitHub Actions UI) but that won't stop your automated CI on Not sure how to approach this. Do you have any ideas? How would the tool know that you're fixing something relatively to an old release? I don't think that's the regular Git flow. Such maintenance releases should be a special case. Maybe their changes are not pushed to the You can still do:
While this would work in terms of releases, you'd lose your fix in Git and that's not acceptable. Are you suggesting we need something like "skip this commit" flag? 🤔 |
Beta Was this translation helpful? Give feedback.
-
Hi, @jbcpollak. There's been some progress around this and Release now supports multiple profiles. I believe you can now define a designated profile that will trigger a custom release: // release.config.json
{
"profiles": [
{ "name": "latest", "use": "<YOUR_REGULAR_RELEASE>" },
{ "name": "dev", "use": "npm publish --tag beta" }
]
} Then, configure your GitHub Actions to trigger the right # .github/workflows/release.yml
on:
push:
branches: [dev]
jobs:
release:
steps:
- # Checkout the repo
- name: Release
# Provide the "name" of the profile to publish.
run: npx release publish -p dev |
Beta Was this translation helpful? Give feedback.
-
Maybe this is just a documentation issue, but what would the process for making a maintenance release be?
Say for example branch
main
always has the latest releases, and the current release isv0.2.0
, but you need to make a patch release to an older version likev0.1.0
, so you need to branch from thev0.1.0
and make a tweak, then release it: will release know to only follow that branch and make the releasev0.1.1
, or will it makev0.2.1
?Also, and I'm not sure there's a good way to prevent this but what happens if you make a
feat()
change on the maintenance branch? really that should be un-releaseable or never get merged - maybe that's out of scope forrelease
.Beta Was this translation helpful? Give feedback.
All reactions