Skip to content

Commit

Permalink
fix : build 오류 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
은지 committed May 29, 2024
1 parent e9a9dcb commit 7753417
Showing 1 changed file with 38 additions and 40 deletions.
78 changes: 38 additions & 40 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
@@ -1,47 +1,45 @@
name: node.js CI

on:
push:
branches:
- "feature/**"
- "hotfixes"
- "develop"
- "main"
pull_request:
branches:
- "develop"
push:
branches:
- 'feature/**'
- 'hotfixes'
- 'develop'
- 'main'
pull_request:
branches:
- 'develop'

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16]

steps:
- name: Checkout
uses: actions/checkout@v3

- name: Setup Node.js
uses: actions/setup-node@v3

- name: Cache dependencies
id: cache
uses: actions/cache@v3
with:
path: "**/node_modules"
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Install Dependencies
# 이전의 cache가 없다면 의존성을 설치합니다.
if: steps.cache.outputs.cache-hit != 'true'
run: npm ci

- name: Build Packages
run: npm run build
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16]

steps:
- name: Checkout
uses: actions/checkout@v3

- name: Setup Node.js
uses: actions/setup-node@v3

- name: Cache dependencies
id: cache
uses: actions/cache@v3
with:
path: '**/node_modules'
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Install Dependencies
run: npm install

- name: Build Packages
run: npm run build

0 comments on commit 7753417

Please sign in to comment.