Created
April 25, 2025 05:25
-
-
Save hongggyelim/5a9f0b2dfca7b3c0331c77b381a182c6 to your computer and use it in GitHub Desktop.
빌드 자동화 CI
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: workRoot CI | |
on: | |
push: | |
branches: | |
- main # main 브랜치에 푸시될 때 실행 | |
- dev | |
pull_request: | |
branches: | |
- dev | |
jobs: | |
lint-and-build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Set up Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: "20" # 최신 Node.js 20.x.x 버전 사용 | |
- name: Cache dependencies | |
uses: actions/cache@v3 | |
with: | |
path: ~/.npm | |
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} | |
restore-keys: | | |
${{ runner.os }}-node- | |
- name: Install dependencies | |
run: npm install | |
- name: Run linter | |
run: npm run lint | |
- name: Build | |
run: npm run build |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment