Skip to content

Commit

Permalink
Merge pull request #25 from yo-iwamoto/tmp
Browse files Browse the repository at this point in the history
inject CHROMATIC_PROJECT_TOKEN from repository secrets
  • Loading branch information
yo-iwamoto authored Apr 8, 2024
2 parents 17ea985 + cbf6fae commit c3f2dcd
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 4 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,5 @@ jobs:
- name: Lint
run: pnpm check

- name: UI Test
run: pnpm chromatic

- name: Test
run: pnpm test
28 changes: 28 additions & 0 deletions .github/workflows/ui-test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: "Chromatic"

on: push

jobs:
chromatic:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 20.9.0

- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: 8.15.6
run_install: true

- name: Run Chromatic
uses: chromaui/action@latest
with:
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"scripts": {
"prepare": "git config core.hooksPath .githooks",
"dev": "next dev",
"build": "pnpm build:content && pnpm build:next",
"build": "pnpm build:contents && pnpm build:next",
"build:next": "next build",
"build:contents": "tsx src/scripts/build-contents.ts",
"start": "next start",
Expand Down

0 comments on commit c3f2dcd

Please sign in to comment.