Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 38 additions & 0 deletions .github/workflows/sync-rebase.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Sync and Rebase

on:
push:
branches:
- creevey
schedule:
- cron: '0 0 * * *' # every day
workflow_dispatch: # on button click

jobs:
sync:

runs-on: ubuntu-latest

steps:
- name: Setup git username
run: |
git config --global user.email "actions@github.com"
git config --global user.name "Github Actions"
- uses: actions/checkout@v2
with:
ref: creevey
fetch-depth: 0
- name: Sync with upstream
run: |
git remote add upstream https://github.com/storybookjs/storybook.git
git fetch upstream
- name: Rebase creevey branch
run: |
git reset upstream/master --hard
git cherry-pick master..HEAD
git push origin --force
- name: Rebase master branch
run: |
git checkout master
git reset upstream/master --hard
git push origin --force
9 changes: 9 additions & 0 deletions examples/official-storybook/creevey.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
// eslint-disable-next-line no-underscore-dangle
process.env.__CREEVEY_STORYBOOK_FRAMEWORK__ = 'react';
// eslint-disable-next-line no-underscore-dangle
process.env.__CREEVEY_STORYBOOK_VERSION__ = require('./package.json').version;

/** @type {import("creevey").CreeveyConfig } */
module.exports = {
storybookDir: process.cwd(),
};
5 changes: 3 additions & 2 deletions examples/official-storybook/main.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/// <reference types="node" />
// / <reference types="node" />

import type { StorybookConfig } from '@storybook/react/types';

Expand All @@ -8,7 +8,7 @@ module.exports = {
'../../lib/ui/src/**/*.stories.@(js|tsx|mdx)',
'../../lib/components/src/**/*.stories.@(js|tsx|mdx)',
'./stories/**/*stories.@(js|ts|tsx|mdx)',
'./../../addons/docs/**/*.stories.tsx',
// TODO Support storiesOf variables './../../addons/docs/**/*.stories.tsx',
],
reactOptions: {
fastRefresh: true,
Expand All @@ -30,6 +30,7 @@ module.exports = {
'@storybook/addon-jest',
'@storybook/addon-graphql',
'@storybook/addon-queryparams',
'creevey',
],
core: {
builder: 'webpack4',
Expand Down