From a11c7d0ef2340d599377ad8403dd916492b971e4 Mon Sep 17 00:00:00 2001 From: bytrustu Date: Fri, 1 Mar 2024 05:12:02 +0900 Subject: [PATCH] =?UTF-8?q?chore:=20chromatic=20github=20actions=20?= =?UTF-8?q?=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/chromatic.yaml | 33 ++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/chromatic.yaml diff --git a/.github/workflows/chromatic.yaml b/.github/workflows/chromatic.yaml new file mode 100644 index 000000000..fb607e04a --- /dev/null +++ b/.github/workflows/chromatic.yaml @@ -0,0 +1,33 @@ +name: Chromatic Deployment + +on: + push: + branches: + - main + paths: + - 'src/components/**' + - 'src/shared/components/**' + - 'src/shared/styles/**' + +jobs: + chromatic-deployment: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + with: + fetch-depth: 0 # 전체 Git 이력을 가져오도록 설정 + + - name: Setup Node.js + uses: actions/setup-node@v3 + with: + node-version: '20' + + - name: Install Dependencies + run: yarn install + + - name: Run Chromatic + uses: chromaui/action@v1 + with: + token: ${{ secrets.NEXT_PAYMENTS_CHROMATIC_TOKEN }} + projectToken: ${{ secrets.NEXT_PAYMENTS_CHROMATIC_TOKEN }} + exitZeroOnChanges: true \ No newline at end of file