merge : 리팩토링 및 게시글 작성 중 이미지 크기 수정 #16
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: 'Chromatic Storybook Deployment' | |
on: | |
push: | |
branches: ['main'] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
env: | |
working-directory: ./client | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Install dependencies | |
run: yarn install | |
working-directory: ${{ env.working-directory }} | |
- name: test | |
run: pwd | |
working-directory: ${{ env.working-directory }} | |
- name: test2 | |
run: ls | |
working-directory: ${{ env.working-directory }} | |
- name: Generate Environment Variables File for Production | |
run: echo "NEXT_PUBLIC_API_URL=$NEXT_PUBLIC_API_URL" >> .env.production | |
working-directory: ${{ env.working-directory }} | |
env: | |
NEXT_PUBLIC_API_URL: ${{ secrets.NEXT_PUBLIC_API_URL }} | |
- name: Publish to Chromatic | |
uses: chromaui/action@v1 | |
with: | |
workingDir: ${{ env.working-directory }} | |
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }} | |
token: ${{ secrets.GITHUB_TOKEN }} |