Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

{Automation} Draft a new release #108

Draft
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

MoChilia
Copy link
Member

@MoChilia MoChilia commented Jun 26, 2023

Description

This pr adds a custom automation workflow to draft a release. The release process of this repository involves the following steps.

Phase1: Run release.yml

  1. Bump the version in package.json & package-lock.json on master branch.
  2. Build: Once the code is pushed to master branch, build.yml will be triggered automatically to ensure the dist/index.js is up to date.
  3. Create a new branch from master branch for every major version or update the corresponding release branch for every minor version by fast-forwarding release branch to master branch.
  4. Generate release notes by custom_release_config.yml according to automatically-generated-release-notes.
  5. Draft a new release.

Phase2: Run update-main-version.yml

Update the tag of the corresponding major version to point to the ref of the current release. Example, for releasing v1.0.1, update the v1 tag to point to the ref of the current release.

@MoChilia MoChilia added the automation Custom automation workflows label Jun 26, 2023
@MoChilia MoChilia requested a review from jiasli June 26, 2023 05:26
@MoChilia MoChilia self-assigned this Jun 26, 2023
@MoChilia MoChilia requested a review from YanaXu June 27, 2023 02:49
@MoChilia MoChilia marked this pull request as draft June 27, 2023 03:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
automation Custom automation workflows
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant