Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
storybook CI/CD 설정
1.
.github/workflows/chromatic.yml
작성 및packages/ui
CI/CD 스크립트 작성secrets.CHROMATIC_PROJECT_TOKEN
은 secrets 환경변수로 등록해야한다.secrets.GITHUB_TOKEN
은 유저 정보 settings -> developer settings 에서 발급받은 class token임)pnpm
을 사용하고 있으므로 CI/CD 환경에서도pnpm
을 사용할 수 있어야한다.2.
chromatic
빌드 명령어는build-storybook
명령어 이후에 수행되어야하며 아래 2가지 방법 중 선택할 수 있음."chromatic": "npx chromatic --exit-zero-on-changes -d storybook-static/"
=> 참고이슈"chromatic": "bash ./scripts/chromatic_publish.sh"
=> 2번 방법의 경우scripts/chromatic_publish.sh
쉘 파일을 만들고.env
파일을 만들어야함. 참고 블로그