From 9fc2258e80a95c76716593e6f329f4fe509c5290 Mon Sep 17 00:00:00 2001 From: semnil5202 Date: Tue, 16 Jul 2024 05:09:12 +0900 Subject: [PATCH] refactor: chromatic yml deploy --- .github/workflows/chromatic.yml | 34 ++++----------------------------- 1 file changed, 4 insertions(+), 30 deletions(-) diff --git a/.github/workflows/chromatic.yml b/.github/workflows/chromatic.yml index 7b824bb9..0f9152c3 100644 --- a/.github/workflows/chromatic.yml +++ b/.github/workflows/chromatic.yml @@ -6,40 +6,14 @@ jobs: chromatic: runs-on: ubuntu-latest steps: - - name: Checkout repository - uses: actions/checkout@v2 - with: - fetch-depth: 0 - - - name: Set up Node.js - uses: actions/setup-node@v2 + - name: Publish Project packages/core/sds to Chromatic + uses: chromaui/action@latest with: - node-version: '14' - - - name: Install pnpm - run: npm install -g pnpm - - - name: Install dependencies - run: pnpm install - - - name: Show current directory - run: pwd - - - name: List files in current directory - run: ls -la + projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN_SDS }} + workingDir: packages/core/sds - name: Publish Project apps/web to Chromatic uses: chromaui/action@latest with: projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN_WEB }} workingDir: apps/web - onlyChanged: true - externals: packages/web-domains/assets - - - name: Publish Project packages/sds to Chromatic - uses: chromaui/action@latest - with: - projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN_SDS }} - onlyChanged: true - workingDir: packages/core/sds - externals: packages/core/sds/assets