AI Briefing
KO

Kakao Webtoon Improves Deployment Automation with workflow_dispatch and inquirer.js

·2022.09.29 09:00

Key point

The approach involves running GitHub Actions from the terminal by selecting region and env without creating a branch.

1 / 5

Details

The Kakao Webtoon frontend team unveiled a new deployment process utilizing workflow_dispatch and inquirer.js to address the inconveniences of the existing branch-push-based deployment method. The previous approach required a complex procedure of updating the local branch and creating and pushing a new deployment branch for each release.

The new method uses the workflow_dispatch event in GitHub Actions to manually trigger remote workflows from the local terminal. Workflows are executed via GitHub CLI (gh), passing region and env values required for deployment as arguments. This eliminates the need for branch parsing or separate branch creation steps.

To improve user experience, the inquirer.js library was introduced. It allows users to intuitively select the deployment branch, region (kor, twn, tha, idn), and environment (sandbox, cbt, prod) via a UI in the terminal. The selected values are dynamically injected into the gh workflow run command through the deploy.js script to execute the workflow.

This summary was generated automatically by AI. Check the original for the author's claims and context. Copyright belongs to the original author.

Our guide explains how the AI works. Report summary errors, attribution issues, or removal requests via Contact.