Skip to content

Commit d7cde0e

Browse files
authored
feat: Add release workflows (#31) (#32)
* feat: Add workflows for relases * fix: Hotfix workflow depends on semantic release only
1 parent 1169b4a commit d7cde0e

File tree

2 files changed

+6
-13
lines changed

2 files changed

+6
-13
lines changed

.github/workflows/hotfix.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ jobs:
4343
cherry-pick:
4444
if: contains(github.event.head_commit.message, 'hotfix:')
4545
runs-on: ubuntu-latest
46-
needs: docker-build
46+
needs: semantic-release
4747
permissions:
4848
contents: write # to be able to push to the main branch
4949
pull-requests: write # to be able to create a pull request

release.config.js

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,19 @@
11
module.exports = {
2-
// Define the branches for release.
2+
preset: 'angular',
33
branches: [
44
{ name: 'main' },
55
{ name: 'dev', channel: 'dev', prerelease: false }
66
],
7-
// Map commit types to releases.
8-
// Breaks any commit that normally triggers a major bump so that only minor or patch releases occur.
97
releaseRules: [
10-
{ type: 'major', release: 'patch' }, // Force breaking changes to become patch releases.
11-
{ type: 'minor', release: 'minor' },
12-
{ type: 'patch', release: 'patch' },
13-
{ type: 'fix', release: 'patch' }
8+
{ type: 'major', release: 'patch' },
9+
{ type: 'feat', release: 'minor' },
10+
{ type: 'fix', release: 'patch' },
11+
{ type: 'perf', release: 'patch' }
1412
],
15-
// Change the tag format. This enforces a 0.x.x version.
1613
tagFormat: '0.${version}',
17-
// List the plugins to use during the release process.
1814
plugins: [
19-
// Analyze commits for changes.
2015
'@semantic-release/commit-analyzer',
21-
// Generate a changelog.
2216
'@semantic-release/release-notes-generator',
23-
// Create and publish a new GitHub release.
2417
'@semantic-release/github'
2518
]
2619
};

0 commit comments

Comments
 (0)