-
Notifications
You must be signed in to change notification settings - Fork 461
Open
Labels
enhancementNew feature or requestNew feature or requestideaIdeas, sugerencias, comentarios generales y feedbackIdeas, sugerencias, comentarios generales y feedback
Milestone
Description
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 usenpm 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
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestideaIdeas, sugerencias, comentarios generales y feedbackIdeas, sugerencias, comentarios generales y feedback