GitHub Actions로 CI/CD 설정하기
개발자는 문서용으로 이미지 큐가 포함된 복사 붙여넣기 가능한 구조화된 튜토리얼을 만들어 도움을 받습니다.
입력 및 출력 미리보기
입력
- 작업 / 달성 목표
- Set up a CI/CD pipeline with GitHub Actions for a Node.js app
- 난이도
- 중급 — 기본 지식이 가정됨
- 이미지 배치 안내 포함?
- 예 — 설명이 포함된 [이미지] 마커 추가
- 필요 도구 / 소프트웨어
- GitHub account, Node.js 18+, a repository with npm scripts
출력 (발췌)
How to Set Up a CI/CD Pipeline with GitHub Actions
Prerequisites: GitHub account, Node.js 18+, a repo with `npm test` and `npm run build`.
Step 1 — Create the workflow file. In your repo, add `.github/workflows/ci.yml`. [Image: screenshot of the file tree showing the new workflow folder]
Step 2 — Define the trigger. Set the workflow to run on every push and pull request to main:
```yaml
on:
push:
branches: [main]
```
Step 3 — Add the test job...