diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 198e3343..faaddaf4 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -23,7 +23,7 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Install dependencies run: npm install @@ -38,7 +38,7 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Install dependencies run: npm install @@ -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 @@ -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 }} diff --git a/.gitignore b/.gitignore index 1ab99243..b6cdc732 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,6 @@ .idea +build-storybook.log dist node_modules +maykin-ui-*.*.*.tgz storybook-static diff --git a/.storybook/main.ts b/.storybook/main.ts index 289a25f1..4b07c1c8 100644 --- a/.storybook/main.ts +++ b/.storybook/main.ts @@ -8,6 +8,9 @@ const config: StorybookConfig = { "@storybook/addon-onboarding", "@storybook/addon-interactions", ], + core: { + disableTelemetry: true, + }, framework: { name: "@storybook/react-webpack5", options: { diff --git a/package.json b/package.json index 43570b49..50d070ca 100644 --- a/package.json +++ b/package.json @@ -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": [ @@ -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" @@ -74,5 +77,7 @@ }, "lint-staged": { "*.{css,js,jsx,ts,tsx,md}": "npm run lint:fix" - } + }, + "readme": "ERROR: No README data found!", + "_id": "maykin-ui@0.0.0" }