Skip to content

Commit b53596f

Browse files
Merge pull request #2 from outshift-open/fix/add-chromatic
feat: add chromatic
2 parents 72d6414 + 73ceddb commit b53596f

File tree

4 files changed

+23
-36
lines changed

4 files changed

+23
-36
lines changed

.github/workflows/chromatic.yml

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,24 @@
1-
# name: Chromatic
1+
name: Chromatic
22

3-
# on:
4-
# push:
5-
# branches:
6-
# - main
3+
on:
4+
push:
5+
branches:
6+
- main
77

8-
# jobs:
9-
# chromatic-deployment:
10-
# name: Chromatic
11-
# runs-on: ubuntu-latest
12-
# steps:
13-
# - name: Checkout repository
14-
# uses: actions/checkout@v3
15-
# with:
16-
# fetch-depth: 0 # 👈 Required to retrieve git history
17-
# - name: Install dependencies
18-
# run: yarn install
19-
# - name: Publish to Chromatic
20-
# uses: chromaui/action@v1
21-
# with:
22-
# projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
23-
# token: ${{ secrets.GITHUB_TOKEN }}
24-
# buildScriptName: storybook:build
8+
jobs:
9+
chromatic-deployment:
10+
name: Chromatic
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout repository
14+
uses: actions/checkout@v3
15+
with:
16+
fetch-depth: 0 # 👈 Required to retrieve git history
17+
- name: Install dependencies
18+
run: yarn install
19+
- name: Publish to Chromatic
20+
uses: chromaui/action@v1
21+
with:
22+
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
23+
token: ${{ secrets.GITHUB_TOKEN }}
24+
buildScriptName: storybook:build

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
**React Component Library & Design System**
66

7-
[![TypeScript](https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1- 🌐 **[GitHub Repository](https://github.com/outshift-open/open-ui-kit)** - Source code and issuessvg)](http://www.typescriptlang.org/)
7+
[![TypeScript](https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg)](http://www.typescriptlang.org/)
88
[![Monorepo](https://img.shields.io/badge/monorepo-turborepo-blue)](https://turbo.build/)
99
[![Storybook](https://img.shields.io/badge/storybook-docs-ff69b4)](https://main--67e2c28f188630b706cee923.chromatic.com)
1010
[![License](https://img.shields.io/github/license/outshift-open/open-ui-kit)](LICENSE)

packages/open-ui-kit/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,6 @@
129129
"@types/rollup-plugin-peer-deps-external": "^2",
130130
"@typescript-eslint/eslint-plugin": "^5.57.0",
131131
"@typescript-eslint/parser": "^5.57.0",
132-
"chromatic": "^6.19.9",
133132
"concurrently": "^8.2.2",
134133
"eslint": "^8.36.0",
135134
"eslint-config-prettier": "^8.8.0",

yarn.lock

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3730,7 +3730,6 @@ __metadata:
37303730
"@types/rollup-plugin-peer-deps-external": "npm:^2"
37313731
"@typescript-eslint/eslint-plugin": "npm:^5.57.0"
37323732
"@typescript-eslint/parser": "npm:^5.57.0"
3733-
chromatic: "npm:^6.19.9"
37343733
concurrently: "npm:^8.2.2"
37353734
copy-to-clipboard: "npm:^3.3.3"
37363735
date-fns: "npm:^4.1.0"
@@ -8561,17 +8560,6 @@ __metadata:
85618560
languageName: node
85628561
linkType: hard
85638562

8564-
"chromatic@npm:^6.19.9":
8565-
version: 6.24.1
8566-
resolution: "chromatic@npm:6.24.1"
8567-
bin:
8568-
chroma: dist/bin.js
8569-
chromatic: dist/bin.js
8570-
chromatic-cli: dist/bin.js
8571-
checksum: 10/5ea62aac2c2d2795a010975af75bf6f2006622d4f9abd9e0a0973079aee2a0e4ee525d7c778b52ee216c2e90acb53e550f487dbefb3f72cb77d6669fffff2260
8572-
languageName: node
8573-
linkType: hard
8574-
85758563
"ci-info@npm:^3.2.0":
85768564
version: 3.9.0
85778565
resolution: "ci-info@npm:3.9.0"

0 commit comments

Comments
 (0)