Skip to content

๐Ÿ› fix: ์—๋Ÿฌ ๋ฉ”์„ธ์ง€ ์ˆ˜์ • #557

๐Ÿ› fix: ์—๋Ÿฌ ๋ฉ”์„ธ์ง€ ์ˆ˜์ •

๐Ÿ› fix: ์—๋Ÿฌ ๋ฉ”์„ธ์ง€ ์ˆ˜์ • #557

Workflow file for this run

name: Continuous Integration
on:
workflow_dispatch:
pull_request:
types: [opened, synchronize]
branches:
- main
- master
- develop
- feat/*
- hotfix/*
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
storybook:
permissions: write-all
runs-on: ubuntu-latest
timeout-minutes: 5
outputs:
status: ${{ job.status }}
steps:
- name: checkout repository
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: cache dependencies
id: cache
uses: actions/cache@v3
with:
path: '**/node_modules'
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}-storybook
- name: depedency install
run: npm ci
- name: publish to chromatic
id: chromatic
uses: chromaui/action@v1
with:
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
token: ${{ secrets.GITHUB_TOKEN }}
- name: comment PR
uses: thollander/actions-comment-pull-request@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
message: '๐Ÿš€storybook: ${{ steps.chromatic.outputs.storybookUrl }}'
build:
name: Build
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: '20.14.0'
- 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
if: steps.cache.outputs.cache-hit != 'true'
run: npm ci
- name: Build test
run: npm run build
env:
NEXT_PUBLIC_API_BASE_URL: ${{secrets.NEXT_PUBLIC_API_BASE_URL}}