Skip to content

Commit

Permalink
Merge pull request #3 from maykinmedia/feature/chromatic
Browse files Browse the repository at this point in the history
Feature/chromatic
  • Loading branch information
alextreme authored Jan 9, 2024
2 parents 16ca7a0 + eace7c1 commit a0279bd
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 6 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Install dependencies
run: npm install
Expand All @@ -38,7 +38,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Install dependencies
run: npm install
Expand All @@ -50,7 +50,9 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Install dependencies
run: npm install
Expand All @@ -65,3 +67,8 @@ jobs:
npx concurrently -k -s first -n "SB,TEST" -c "magenta,blue" \
"npx http-server storybook-static --port 6006" \
"npx wait-on tcp:127.0.0.1:6006 && npm run test-storybook"
- name: Publish to Chromatic
uses: chromaui/action@latest
with:
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
.idea
build-storybook.log
dist
node_modules
maykin-ui-*.*.*.tgz
storybook-static
3 changes: 3 additions & 0 deletions .storybook/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ const config: StorybookConfig = {
"@storybook/addon-onboarding",
"@storybook/addon-interactions",
],
core: {
disableTelemetry: true,
},
framework: {
name: "@storybook/react-webpack5",
options: {
Expand Down
11 changes: 8 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
"prepare": "husky install",
"storybook": "storybook dev -p 6006",
"build-storybook": "storybook build",
"test-storybook": "test-storybook"
"test-storybook": "test-storybook",
"chromatic": "npx chromatic"
},
"main": "dist/index.js",
"files": [
Expand All @@ -26,7 +27,9 @@
"type": "git",
"url": "git+https://github.com/maykinmedia/maykin-ui.git"
},
"author": "Maykin Media",
"author": {
"name": "Maykin Media"
},
"license": "MIT",
"bugs": {
"url": "https://github.com/maykinmedia/maykin-ui/issues"
Expand Down Expand Up @@ -74,5 +77,7 @@
},
"lint-staged": {
"*.{css,js,jsx,ts,tsx,md}": "npm run lint:fix"
}
},
"readme": "ERROR: No README data found!",
"_id": "[email protected]"
}

0 comments on commit a0279bd

Please sign in to comment.