-
Hi! I would like to use release drafter to be able to use PR names. I have the release drafter config set up, but have doubts on how to do all the release process when merging from develop to master. My idea is:
I have doubts on how to do the steps marked as (*). Since release-drafter is responsible to resolve the new version based on semver, but the github release should be published after the project's version is bumped in order to include the bump commit. Thanks! Release Drafter Config name-template: 'v$RESOLVED_VERSION 🌈'
tag-template: 'v$RESOLVED_VERSION'
categories:
- title: '🚀 Features'
labels: 'feature'
- title: '✨ Improvements'
labels: 'improvement'
- title: '🐎 Performance'
labels: 'performance'
- title: '🔨 Refactor'
labels: 'refactor'
- title: '🐛 Bug Fixes'
labels: 'bug'
- title: '🧰 Maintenance'
label: 'chore'
change-template: '- $TITLE @$AUTHOR (#$NUMBER)'
change-title-escapes: '\<*_&'
version-resolver:
major:
labels:
- 'major'
minor:
labels:
- 'feature'
- 'improvement'
patch:
labels:
- 'chore'
- 'fix'
- 'performance'
- 'refactor'
default: patch
replacers:
- search: '/(build|chore|ci|docs|feat|fix|improve|perf|refactor|revert|style|test)(\(\w+\)?((?=:\s)|(?=!:\s)))?(!)?(:)(\s.*)/g'
replace: '$2$6'
autolabeler:
- label: 'chore'
title:
- '/chore/i'
- label: 'bug'
title:
- '/fix/i'
- label: 'feature'
title:
- '/feat/i'
- label: 'refactor'
title:
- '/refactor/i'
- label: 'improvement'
title:
- '/improve/i'
- label: 'refactor'
title:
- '/refactor/i'
template: |
## What's Changed
$CHANGES |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Finally what I have done is:
|
Beta Was this translation helpful? Give feedback.
Finally what I have done is:
I have a PR Labeler action which labels PRs with release drafter. (If PRs come from develop, they are marked as skip-changelog, which is then ignored)
When a PR from any branch to develop (already labeled according to its conventional-commit friendly title) is merged, release drafter is run and the draft release gets updated
When we want to make a release, we create a PR from develop to main (marked as skip-changelog). On merged, we run release-drafter which doesn't update the releasee draft since this PR has an ignored label, but it outputs the tag_name, which from we get the version, and we do npm version <> -m "whatever %s [skip ci]", and then push, a…