Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[CLNP-3380] chore: add release automation workflow (#1099)
Our current release steps are like below. 1. Preparation a. Create a release branch; `release/v{version}` b. Update package.json c. Write CHANGELOG d. Push to remote e. create a PR 2. Run `/bot create ticket` to create a release ticket and get an approval from a manager 3. Once 2 is done, run `yarn run build` -> `cd dist` -> `yarn npm publish` This workflow will cover step 3. Step 1 & 2 need to be done manually as we've done. ### How can we trigger the workflow? <img width="367" alt="Screenshot 2024-05-22 at 4 39 15 PM" src="https://github.com/sendbird/sendbird-uikit-react/assets/10060731/95d0030b-d200-417b-aff2-3520c91195aa"> ```mermaid graph TD A[Start: Run workflow] --> B[Check if release branch exists] B --> C{npm_tag provided?} C -- Yes --> E[Update version in package.json] C -- No --> F[Install and Build] E --> F F --> G[Publish to npm] G --> H{npm_tag provided?} H -- Yes --> I[Publish with tag] --> End H -- No --> J[Publish without tag] J --> L[Tag new target and push to origin] L --> End ```
- Loading branch information