refactor: Github Actions 워크플로 개선 #1
Workflow file for this run
This file contains 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: CI | |
on: | |
pull_request: | |
branches: ['main', 'dev'] | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
ci: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
command: ['build', 'build-storybook'] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Node.js 및 NPM 설치 | |
uses: ./.github/actions/install | |
- run: npm run ${{ matrix.command }} | |
- name: Build React | |
run: npm run build --if-present |