Skip to content

Commit

Permalink
ci: update release workflow to include beta releases (#66)
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuagraber committed Apr 25, 2024
1 parent 40561d6 commit cbf048f
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/release.yaml
Expand Up @@ -4,6 +4,7 @@ on:
push:
branches:
- main
- beta

jobs:
setup:
Expand Down
4 changes: 4 additions & 0 deletions README.md
Expand Up @@ -148,3 +148,7 @@ Use this [terminology](https://docs.pdap.io/activities/terms-and-definitions).


_n.b. There are some other scripts defined in the `package.json` `"scripts"` field, but they are mostly for CI or cleanup post-build, etc. You shouldn't need them._

## Releasing
Incremental updates can be added to `main` directly via a PR.
For more significant updates, the `beta` branch can be used for releasing incremental beta releases to test the bigger feature without releasing to production.
6 changes: 4 additions & 2 deletions release.config.cjs
Expand Up @@ -2,7 +2,7 @@
* @type {import('semantic-release').GlobalConfig}
*/
module.exports = {
branches: ['main'],
branches: ['main', { name: 'beta', channel: 'beta', prerelease: true }],
plugins: [
// Run in order:
// 1. Analyze commits to determine release type
Expand All @@ -11,7 +11,8 @@ module.exports = {
{
preset: 'angular',
releaseRules: [
{ type: 'docs', release: 'patch' },
{ type: 'feature', release: 'minor'},
{ type: 'docs', message: '*README*', release: 'patch' },
{ type: 'refactor', release: 'patch' },
{ type: 'style', release: 'patch' },
],
Expand All @@ -35,6 +36,7 @@ module.exports = {
presetConfig: {
types: [
{ type: 'feat', section: 'Features' },
{ type: 'feature', section: 'Features' },
{ type: 'fix', section: 'Bug Fixes' },
{ type: 'hotfix', section: 'Bug Fixes' },
{ type: 'docs', section: 'Docs' },
Expand Down

0 comments on commit cbf048f

Please sign in to comment.