chore: release ci (#4306)

* chore: release ci

* chore: release ci

* chore: release ci

* chore: release ci

* chore: release ci
This commit is contained in:
ChengLei Shao 2024-05-09 23:12:42 +08:00 committed by GitHub
parent 58c3c0fc6a
commit 420aca7a28
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -11,7 +11,11 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v3 uses: actions/checkout@v4
with:
repository: nocobase/nocobase
ssh-key: ${{ secrets.NOCOBASE_DEPLOY_KEY }}
persist-credentials: true
- name: Checkout pro-plugins - name: Checkout pro-plugins
uses: actions/checkout@v4 uses: actions/checkout@v4
with: with:
@ -23,10 +27,8 @@ jobs:
uses: actions/setup-node@v3 uses: actions/setup-node@v3
with: with:
node-version: 18 node-version: 18
- name: Run install - name: Install Lerna
uses: borales/actions-yarn@v4 run: npm install -g lerna@4 auto-changelog@2
with:
cmd: install
- name: Run release.sh - name: Run release.sh
run: | run: |
git config --global user.email "actions@github.com" git config --global user.email "actions@github.com"
@ -34,6 +36,7 @@ jobs:
echo "packages/pro-plugins/" >> .git/info/exclude echo "packages/pro-plugins/" >> .git/info/exclude
bash release.sh bash release.sh
- name: push pro plugins - name: push pro plugins
continue-on-error: true
uses: ad-m/github-push-action@master uses: ad-m/github-push-action@master
with: with:
ssh: true ssh: true
@ -42,10 +45,11 @@ jobs:
repository: nocobase/pro-plugins repository: nocobase/pro-plugins
tags: true tags: true
atomic: true atomic: true
- name: push - name: push nocobase
uses: ad-m/github-push-action@master uses: ad-m/github-push-action@master
with: with:
github_token: ${{ secrets.GITHUB_TOKEN }} branch: main
branch: ${{ github.head_ref }} ssh: true
repository: nocobase/nocobase
tags: true tags: true
atomic: true atomic: true