Commit 6b64ee2
authored
[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
```1 parent 49d57ae commit 6b64ee2
1 file changed
+66
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
0 commit comments