Skip to content

Commit

Permalink
new: ✨ setup chromatic for storybook
Browse files Browse the repository at this point in the history
  • Loading branch information
abdelfattah committed Nov 3, 2023
1 parent af829db commit 3c8120c
Show file tree
Hide file tree
Showing 4 changed files with 51 additions and 4 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/deploy-storybook.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# .github/workflows/chromatic.yml

# Workflow name
name: "Chromatic Publish"

# Event for the workflow
on: push

# List of jobs
jobs:
build-storybook:
# Operating System
runs-on: ubuntu-latest
# Job steps
steps:
- name: Setup pnpm
uses: pnpm/action-setup@v2
with:
version: 8.x
- uses: actions/setup-node@v3
with:
node-version: 18
cache: "pnpm"
- name: Checkout
uses: actions/checkout@v3
- run: pnpm install
#👇 Adds Chromatic as a step in the workflow
- uses: chromaui/action@v1
# Options required for Chromatic's GitHub Action
with:
#👇 Chromatic projectToken,
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
token: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
pull_request:

jobs:
cypress-run:
run-tests:
runs-on: ubuntu-latest
steps:
- name: Setup pnpm
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,6 @@ build
.vscode
.docz
.netlify
storybook-static
*.log
build-*
17 changes: 14 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,14 @@
"name": "vue-mindee-js",
"version": "1.3.1",
"description": "Computer Vision SDK for Vue",
"author": "@mindee",
"author": {
"name": "@mindee"
},
"license": "MIT",
"repository": "publicMindee/vue-mindee-js",
"repository": {
"type": "git",
"url": "git+https://github.com/mindee/vue-mindee-js.git"
},
"module": "dist/index.js",
"types": "dist/index.d.ts",
"scripts": {
Expand Down Expand Up @@ -73,5 +78,11 @@
"processing",
"computer",
"vision"
]
],
"bugs": {
"url": "https://github.com/publicMindee/vue-mindee-js/issues"
},
"readme": "ERROR: No README data found!",
"homepage": "https://github.com/publicMindee/vue-mindee-js#readme",
"_id": "[email protected]"
}

0 comments on commit 3c8120c

Please sign in to comment.