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

[CLNP-3380] chore: add release automation workflow #1099

Merged
merged 3 commits into from
May 23, 2024
Merged

Conversation

AhyoungRyu
Copy link
Contributor

@AhyoungRyu AhyoungRyu commented May 22, 2024

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?

Screenshot 2024-05-22 at 4 39 15 PM
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

Copy link

netlify bot commented May 22, 2024

Deploy Preview for sendbird-uikit-react ready!

Name Link
🔨 Latest commit 17dc385
🔍 Latest deploy log https://app.netlify.com/sites/sendbird-uikit-react/deploys/664e97f61e67e50008e101a5
😎 Deploy Preview https://deploy-preview-1099--sendbird-uikit-react.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@AhyoungRyu AhyoungRyu self-assigned this May 22, 2024
@AhyoungRyu AhyoungRyu changed the title chroe: UIKit release automation workflow 추가 [CLNP-3380] chroe: Add release automation workflow May 22, 2024
@AhyoungRyu AhyoungRyu changed the title [CLNP-3380] chroe: Add release automation workflow [CLNP-3380] chroe: add release automation workflow May 22, 2024
Copy link
Contributor

@bang9 bang9 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm!

@HoonBaek HoonBaek changed the title [CLNP-3380] chroe: add release automation workflow [CLNP-3380] chore: add release automation workflow May 23, 2024
@HoonBaek HoonBaek merged commit 6b64ee2 into main May 23, 2024
8 checks passed
@HoonBaek HoonBaek deleted the chore/CLNP-3380 branch May 23, 2024 04:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants