Skip to content

Commit

Permalink
refactor!: update to SB8 addon-kit template and fix the Aside style i…
Browse files Browse the repository at this point in the history
…ssute

Align with SB8 addon-kit template.
Upgrade dependencids.
Fix the Aside style issue.

BREAKING CHANGES: supports SB8.
  • Loading branch information
arlene-wang authored and Arlene-May committed Jun 18, 2024
1 parent 0838a08 commit 99131f5
Show file tree
Hide file tree
Showing 21 changed files with 18,305 additions and 16,390 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@ jobs:
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, 'ci skip') && !contains(github.event.head_commit.message, 'skip ci')"
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Prepare repository
run: git fetch --unshallow --tags

- name: Use Node.js 16.x
uses: actions/setup-node@v3
- name: Use Node.js 18.x
uses: actions/setup-node@v4
with:
node-version: 16.x
node-version: 18.x

- name: Install dependencies
run: yarn install --ignore-scripts
Expand All @@ -25,4 +25,4 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: |
yarn release
npm run release
4 changes: 2 additions & 2 deletions .storybook/local-preset.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
* to load the built addon in this test Storybook
*/
function previewAnnotations(entry = []) {
return [...entry, require.resolve("../dist/preview.mjs")];
return [...entry, require.resolve("../dist/preview.js")];
}

function managerEntries(entry = []) {
return [...entry, require.resolve("../dist/manager.mjs")];
return [...entry, require.resolve("../dist/manager.js")];
}

module.exports = {
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

_Show Changelog files in the Storybook UI_ - made with ❤️ by [Dave Bitter](https://github.com/DaveBitter)

> Storybook v7.0.0 or higher is needed to use this addon
> Storybook v8.0.0 or higher is needed to use this addon
![Storybook UI showing the changelog tab active and displaying a mock changelog](https://github.com/DaveBitter/storybook-addon-changelog-viewer/raw/main/storybook-addon-changelog-viewer-demo.png)

Expand Down
32 changes: 32 additions & 0 deletions doctor-storybook.log
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
🩺 The doctor is checking the health of your Storybook..
╭ Incompatible packages found ──────────────────────────────────────────────────────────────────────────────╮
│ │
│ The following packages are incompatible with Storybook 7.0.0 as they depend on different major │
│ versions of Storybook packages: │
│ - @storybook/[email protected]
│ Repo: https://github.com/storybookjs/storybook/tree/next/code/ui/blocks │
│ - @storybook/[email protected]
│ Repo: https://github.com/storybookjs/storybook/tree/next/code/ui/components │
│ - @storybook/[email protected]
│ Repo: https://github.com/storybookjs/storybook/tree/next/code/lib/manager-api │
│ - @storybook/[email protected]
│ Repo: https://github.com/storybookjs/storybook/tree/next/code/lib/preview-api │
│ - @storybook/[email protected]
│ Repo: https://github.com/storybookjs/storybook/tree/next/code/lib/theming │
│ - @storybook/[email protected]
│ Repo: https://github.com/storybookjs/storybook/tree/next/code/lib/types │
│ - [email protected]
│ Repo: https://github.com/storybookjs/storybook/tree/next/code/lib/cli │
│ │
│ │
│ Please consider updating your packages or contacting the maintainers for compatibility details. │
│ For more on Storybook 8 compatibility, see the linked GitHub issue: │
│ https://github.com/storybookjs/storybook/issues/26031 │
│ │
╰───────────────────────────────────────────────────────────────────────────────────────────────────────────╯

You can always recheck the health of your project by running:
npx storybook doctor

Full logs are available in /Users/[email protected]/Desktop/workspace/TAPP102535-oss-storybook-addon-changelog-viewer/doctor-storybook.log

4 changes: 3 additions & 1 deletion manager.js
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
export * from "./dist/manager";
import './dist/manager';


Loading

0 comments on commit 99131f5

Please sign in to comment.