chore(ci): optimize release ci

This commit is contained in:
xilesun 2025-02-27 10:17:36 +08:00
parent bbb3bc9a40
commit 92cf679bda
4 changed files with 23 additions and 14 deletions

View File

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

View File

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

View File

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

View File

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