Skip to content

Build your own AI office with Univer Office SDK. Bring editing, calculation, collaboration, and file processing into your product for people and AI agents. Built on an extensible open-source core.

chore: fix storybook compilation failure (#517)

白熱8039b167cf6f
diff --git a/.github/workflows/preview-build.yml b/.github/workflows/preview-build.yml
index 6fe01cd91a..4b7839238d 100644
--- a/.github/workflows/preview-build.yml
+++ b/.github/workflows/preview-build.yml
@@ -61,25 +61,21 @@ jobs:
cp -r ./examples/univer-sheet-ts/local .workspace/sheet
cp -r ./examples/univer-slide-ts/local .workspace/slide
- - name: Setup demo cache
- uses: actions/cache@v3
+ - name: Save demo cache
+ uses: actions/cache/save@v3
with:
path: .workspace
key: ${{ runner.os }}-demo-${{ github.event.pull_request.number }}
- restore-keys: |
- ${{ runner.os }}-demo-
# build storybook
- name: 📦 Build storybook
run: pnpm run build:storybook
- - name: Setup storybook cache
- uses: actions/cache@v3
+ - name: Save storybook cache
+ uses: actions/cache/save@v3
with:
path: storybook-static
key: ${{ runner.os }}-storybook-${{ github.event.pull_request.number }}
- restore-keys: |
- ${{ runner.os }}-storybook-
set-pr-id:
name: Set PR ID
diff --git a/.github/workflows/preview-deploy.yml b/.github/workflows/preview-deploy.yml
index ddc1abee7e..d8460f5565 100644
--- a/.github/workflows/preview-deploy.yml
+++ b/.github/workflows/preview-deploy.yml
@@ -31,13 +31,11 @@ jobs:
- name: Checkout
uses: actions/checkout@v3
- - name: Setup demo cache
- uses: actions/cache@v3
+ - name: Restore demo cache
+ uses: actions/cache/restore@v3
with:
path: .workspace
key: ${{ runner.os }}-demo-${{ steps.pr.outputs.id }}
- restore-keys: |
- ${{ runner.os }}-demo-
- name: 🚀 Deploy to Vercel (demo)
uses: amondnet/vercel-action@v25
@@ -47,13 +45,11 @@ jobs:
vercel-org-id: ${{ secrets.ORG_ID}}
vercel-project-id: ${{ secrets.PROJECT_ID}}
- - name: Setup storybook cache
- uses: actions/cache@v3
+ - name: Restore storybook cache
+ uses: actions/cache/restore@v3
with:
path: storybook-static
key: ${{ runner.os }}-storybook-${{ steps.pr.outputs.id }}
- restore-keys: |
- ${{ runner.os }}-storybook-
- name: 🚀 Deploy to Vercel (storybook)
uses: amondnet/vercel-action@v25
diff --git a/package.json b/package.json
index 7c4d2283b8..7b8628b154 100644
--- a/package.json
+++ b/package.json
@@ -61,6 +61,7 @@
"lint-staged": "^15.1.0",
"prettier": "^3.1.0",
"react": "^18.2.0",
+ "react-dom": "^18.2.0",
"storybook": "^7.5.3",
"stylelint": "^15.11.0",
"stylelint-config-clean-order": "^5.2.0",
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index ae8e734592..89edb5ff0a 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -113,6 +113,9 @@ importers:
react:
specifier: ^18.2.0
version: 18.2.0
+ react-dom:
+ specifier: ^18.2.0
+ version: 18.2.0([email protected])
storybook:
specifier: ^7.5.3
version: 7.5.3