Skip to main content
DevTools24

GitHub Actions 빌더

GitHub Actions 워크플로를 시각적으로 빌드합니다. 트리거를 구성하고, 작업과 단계를 추가한 다음, 생성된 YAML을 복사합니다.

Steps:
1.Checkout codeactions/checkout@v4
2.Setup Node.jsactions/setup-node@v4
3.Install dependenciesnpm ci
4.Buildnpm run build
Add step:
name: CI

on:
  push:
    branches: [main]
  pull_request:
    branches: [main]

jobs:
  build:
    name: Build
    runs-on: ubuntu-latest
    steps:
      - name: Checkout code
        uses: actions/checkout@v4
      - name: Setup Node.js
        uses: actions/setup-node@v4
        with:
          node-version: 20
      - name: Install dependencies
        run: npm ci
      - name: Build
        run: npm run build

GitHub Actions - 기술 세부 정보

GitHub Actions automate your software development workflows. Workflows are defined in YAML files in .github/workflows/. They can run on push, pull request, schedule, or manual trigger.

명령줄 대안

# Create workflow directory\nmkdir -p .github/workflows\n\n# Validate workflow\ngh workflow list\ngh run list

참조

공식 사양 보기