Merge branch 'main' into next

This commit is contained in:
nocobase[bot] 2025-02-27 02:18:10 +00:00
commit e91e507cc9
5 changed files with 24 additions and 15 deletions

View File

@ -89,7 +89,7 @@ jobs:
with: with:
node-version: 18 node-version: 18
- name: Install dependencies - name: Install dependencies
run: yarn install --frozen-lockfile run: yarn install
- name: Run script - name: Run script
shell: bash shell: bash
run: | run: |
@ -101,6 +101,6 @@ jobs:
if: ${{ steps.get-info.outputs.version == 'rc' }} if: ${{ steps.get-info.outputs.version == 'rc' }}
run: | run: |
git pull origin main git pull origin main
git add . git add CHANGELOG.md CHANGELOG.zh-CN.md
git commit -m "docs: update changelogs" git commit -m "docs: update changelogs"
git push origin main git push origin main

View File

@ -55,12 +55,15 @@ jobs:
do do
git clone -b develop https://x-access-token:${{ steps.app-token.outputs.token }}@github.com/nocobase/$repo.git packages/pro-plugins/@nocobase/$repo git clone -b develop https://x-access-token:${{ steps.app-token.outputs.token }}@github.com/nocobase/$repo.git packages/pro-plugins/@nocobase/$repo
done done
- name: Set Node.js 18 - name: Set Node.js 20
uses: actions/setup-node@v3 uses: actions/setup-node@v3
with: with:
node-version: 18 node-version: 20
- name: Install Lerna - name: yarn install and build
run: npm install -g lerna@4 auto-changelog@2 run: |
yarn config set registry https://registry.npmjs.org/
yarn install
yarn build
- name: Run release.sh - name: Run release.sh
shell: bash shell: bash
run: | run: |

View File

@ -100,12 +100,15 @@ jobs:
do do
git clone -b next https://x-access-token:${{ steps.app-token.outputs.token }}@github.com/nocobase/$repo.git packages/pro-plugins/@nocobase/$repo git clone -b next https://x-access-token:${{ steps.app-token.outputs.token }}@github.com/nocobase/$repo.git packages/pro-plugins/@nocobase/$repo
done done
- name: Set Node.js 18 - name: Set Node.js 20
uses: actions/setup-node@v3 uses: actions/setup-node@v3
with: with:
node-version: 18 node-version: 20
- name: Install Lerna - name: yarn install and build
run: npm install -g lerna@4 auto-changelog@2 run: |
yarn config set registry https://registry.npmjs.org/
yarn install
yarn build
- name: Run release.sh - name: Run release.sh
shell: bash shell: bash
run: | run: |

View File

@ -94,12 +94,15 @@ jobs:
do do
git clone -b main https://x-access-token:${{ steps.app-token.outputs.token }}@github.com/nocobase/$repo.git packages/pro-plugins/@nocobase/$repo git clone -b main https://x-access-token:${{ steps.app-token.outputs.token }}@github.com/nocobase/$repo.git packages/pro-plugins/@nocobase/$repo
done done
- name: Set Node.js 18 - name: Set Node.js 20
uses: actions/setup-node@v3 uses: actions/setup-node@v3
with: with:
node-version: 18 node-version: 20
- name: Install Lerna - name: yarn install and build
run: npm install -g lerna@4 auto-changelog@2 run: |
yarn config set registry https://registry.npmjs.org/
yarn install
yarn build
- name: Run release.sh - name: Run release.sh
shell: bash shell: bash
run: | run: |

View File

@ -398,7 +398,7 @@ export const DataBlockInitializer: FC<DataBlockInitializerProps> = (props) => {
] as MenuProps['items']; ] as MenuProps['items'];
}, [searchedChildren, hideChildrenIfSingleCollection, name, compile, title, icon, onClick, props]); }, [searchedChildren, hideChildrenIfSingleCollection, name, compile, title, icon, onClick, props]);
if (childItems.length > 1 || (childItems.length === 1 && childItems[0].children?.length > 0)) { if (childItems.length > 1 || (childItems.length === 1 && childItems[0].children)) {
return ( return (
<SchemaInitializerMenu <SchemaInitializerMenu
onOpenChange={(keys) => { onOpenChange={(keys) => {