Skip to content

Commit

Permalink
refactor: chromatic yml deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
semnil5202 committed Jul 15, 2024
1 parent bc2d1e9 commit 9fc2258
Showing 1 changed file with 4 additions and 30 deletions.
34 changes: 4 additions & 30 deletions .github/workflows/chromatic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 9fc2258

Please sign in to comment.