Skip to content

Commit

Permalink
build: update build setup to be ready for storybook7 (#2530)
Browse files Browse the repository at this point in the history
Co-authored-by: Brandon Lenz <[email protected]>
  • Loading branch information
gidjin and brandonlenz authored Dec 27, 2023
1 parent a31f118 commit 091f620
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 5 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,19 @@ name: Build and Test

on:
push:
branches: [main]
branches: [ main ]
pull_request:
branches: [main]
branches: [ main ]
workflow_dispatch:


jobs:
build-and-test:
runs-on: ubuntu-latest

strategy:
matrix:
node: ['16', '18']
node: [ '16', '18' ]

name: Node ${{ matrix.node }} tests

Expand Down Expand Up @@ -59,6 +60,9 @@ jobs:
- name: Check format
run: yarn format:check

- name: Build Storybook
run: yarn build-storybook

- name: Happo
run: yarn happo-ci
env:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/deploy-storybook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
run: yarn install

- name: Build Storybook
run: yarn build-storybook --modern
run: yarn build-storybook

- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@v4
Expand Down
5 changes: 4 additions & 1 deletion .happo.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ module.exports = {
},
plugins: [
// see https://github.com/happo/happo-plugin-storybook for a list of options you can pass to the plugin
happoPluginStorybook(),
happoPluginStorybook({
outputDir: 'storybook-static',
usePrebuiltPackage: true,
}),
],
}

0 comments on commit 091f620

Please sign in to comment.