Azure / cli

Automate your GitHub workflows using Azure CLI scripts
MIT License
124 stars 52 forks source link

{Automation} Draft a new release #108

Open MoChilia opened 1 year ago

MoChilia commented 1 year ago

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.