Skip to content

Commit

Permalink
Merge pull request #49 from ed-software/chore/update-storybook
Browse files Browse the repository at this point in the history
Chore/update storybook
  • Loading branch information
ed-software committed Apr 28, 2023
2 parents c3e856d + a0b2fba commit b3a91f9
Show file tree
Hide file tree
Showing 7 changed files with 19,982 additions and 30,031 deletions.
11 changes: 10 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ name: 'CI'

on: push

env:
NODE_VERSION: '18.12.1'


jobs:
tests:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -30,14 +34,19 @@ jobs:
HAS_CHROMATIC_PROJECT_TOKEN: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
steps:
- uses: actions/checkout@v1
- name: Setup Node ${{ env.NODE_VERSION }} Environment
uses: actions/setup-node@v2
with:
node-version: ${{ env.NODE_VERSION }}
cache: npm
- name: Install dependencies
if: ${{ env.HAS_CHROMATIC_PROJECT_TOKEN }}
# 👇 Install dependencies with the same package manager used in the project (replace it as needed), e.g. yarn, npm, pnpm
run: npm ci
# 👇 Adds Chromatic as a step in the workflow
- name: Publish to Chromatic
if: ${{ env.HAS_CHROMATIC_PROJECT_TOKEN }}
uses: chromaui/action@v1
uses: chromaui/action-next@v1
# Chromatic GitHub Action options
with:
# 👇 Chromatic projectToken, refer to the manage page to obtain it.
Expand Down
9 changes: 6 additions & 3 deletions .storybook/main.cjs
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
module.exports = {
stories: ['../src/**/*.stories.mdx', '../src/**/*.stories.@(js|jsx|ts|tsx)'],
addons: ['@storybook/addon-essentials'],
framework: '@storybook/react',
core: {
builder: '@storybook/builder-vite',
framework: {
name: '@storybook/react-vite',
options: {},
},
features: {
storyStoreV7: true,
},
docs: {
autodocs: true,
},
};
Loading

0 comments on commit b3a91f9

Please sign in to comment.