Skip to content

Commit

Permalink
Fix Storybook build
Browse files Browse the repository at this point in the history
  • Loading branch information
thibaudcolas committed Jul 8, 2022
1 parent d706f06 commit 27723d1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
${{ runner.os }}-node-
- run: npm ci
- run: npm run lint -s
- run: npm run dist -s
- run: npm run dist -s && mv storybook-static public/storybook
- run: npm run report:size
- run: npm run report:package
- run: npm run test:coverage -s --json --runInBand
Expand Down
2 changes: 2 additions & 0 deletions .storybook/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ const EMBEDLY_API_KEY = process.env.EMBEDLY_API_KEY || EMBEDLY_API_KEY_PROD;

module.exports = {
stories: ["../examples/**/*.story.*"],
// See https://github.com/storybookjs/storybook/issues/18662.
addons: [],
framework: "@storybook/react",
core: {
builder: {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@
"start": "start-storybook -c .storybook -p 9001 --no-open --no-version-updates --no-release-notes --quiet --modern",
"build:rollup": "rollup -c",
"build:styles": "sass src/index.scss > dist/draftail.css",
"build:storybook": "build-storybook -c .storybook -o storybook-static --quiet --modern && mv storybook-static public/storybook",
"build:storybook": "build-storybook -c .storybook -o storybook-static --quiet --modern",
"build": "npm run build:rollup -s && npm run build:storybook -s && npm run build:styles -s",
"dist": "NODE_ENV=production npm run build -s",
"lint": "eslint --cache --ext .js,.ts,.tsx --report-unused-disable-directives . && stylelint --report-needless-disables '**/*.scss' && prettier --check '**/?(.)*.{md,css,scss,js,ts,tsx,json,json5,yaml,yml,html}'",
Expand Down

0 comments on commit 27723d1

Please sign in to comment.