Skip to content

Commit

Permalink
Merge pull request #19 from hyeeyoung/dev
Browse files Browse the repository at this point in the history
Merge pull request #18 from hyeeyoung/dev
  • Loading branch information
hyejungg authored Mar 31, 2022
2 parents 869b090 + 703c78e commit 7908108
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/pushServerCICD.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
name: pushServer CICD
on:
push:
branches:
- dev
pull_request:
branches:
- main
Expand Down Expand Up @@ -61,14 +63,14 @@ jobs:
echo SLACK_API_TOKEN=${{ secrets.SLACK_API_TOKEN }} >> .env
# CI 통과 시 build하여 server.js 파일 생성
# CI 시, build하여 server.js 파일 생성
- name: Run build
run: |
echo NODE_ENV="development" >> .env
npm run build --if-present
- name: Run build (main)
if: ${{ github.ref == 'main' }}
if: ${{ github.base_ref == 'main' }}
run: |
echo NODE_ENV="production" >> .env
npm run build:production --if-present
Expand Down

0 comments on commit 7908108

Please sign in to comment.