-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
new: ✨ setup chromatic for storybook
- Loading branch information
abdelfattah
committed
Nov 3, 2023
1 parent
af829db
commit 3c8120c
Showing
4 changed files
with
51 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ on: | |
pull_request: | ||
|
||
jobs: | ||
cypress-run: | ||
run-tests: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Setup pnpm | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,3 +5,6 @@ build | |
.vscode | ||
.docz | ||
.netlify | ||
storybook-static | ||
*.log | ||
build-* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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": { | ||
|
@@ -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]" | ||
} |