Introduce a workflow to automate our release steps
https://github.com/Laboratoria/curriculum/blob/main/DEPLOYMENT.md
Tentative plan:
When a PR is opened in this repo to be merged into next (with a certain naming convention like release/name_of_release)
- remove and reconstruct
dist npm run build:content
- generate release notes based on changelog (action?)
- analyze changelog commits to see if version is major or minor or patch (this requires use of conventional commits at least on merge commits)
- version and tag commit on branch with
npm version ( based on fix feat, breaking keywords syntax use npm version patch|minor|major and a message -m for the commit message "chore(release): Bumps version to vX.X.X and updates dist files`)
- generate a draft release with
gh release the changelog notes and a determined version
This draft and PR allow us to analyze if everything looks good.
When the PR is merged, the tag and version commit will be merged into next. And an action will complete the following
- Determine which release draft to finalize (using the API or the version to figure it out)
- Finalize the draft (run
gh release edit)
Inspiration
https://birtony.medium.com/setting-up-automated-release-workflow-with-github-actions-628dbca2446e
Introduce a workflow to automate our release steps
https://github.com/Laboratoria/curriculum/blob/main/DEPLOYMENT.md
Tentative plan:
When a PR is opened in this repo to be merged into
next(with a certain naming convention likerelease/name_of_release)distnpm run build:contentnpm version( based on fix feat, breaking keywords syntax usenpm version patch|minor|majorand a message-mfor the commit message "chore(release): Bumps version to vX.X.X and updates dist files`)gh releasethe changelog notes and a determined versionThis draft and PR allow us to analyze if everything looks good.
When the PR is merged, the tag and version commit will be merged into next. And an action will complete the following
gh release edit)Inspiration
https://birtony.medium.com/setting-up-automated-release-workflow-with-github-actions-628dbca2446e