mirror of
https://gitee.com/nocobase/nocobase.git
synced 2025-05-05 13:39:24 +08:00
chore: update release ci (#4632)
* chore: update release ci * chore: test ci * fix: ci * fix: ci * fix: update release.sh
This commit is contained in:
parent
e6848858d4
commit
b06c958070
8
.github/workflows/manual-release.yml
vendored
8
.github/workflows/manual-release.yml
vendored
@ -6,6 +6,10 @@ concurrency:
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
is_feat:
|
||||
description: 'is feat'
|
||||
type: boolean
|
||||
jobs:
|
||||
push-commit:
|
||||
runs-on: ubuntu-latest
|
||||
@ -36,7 +40,9 @@ jobs:
|
||||
git config --global user.email "actions@github.com"
|
||||
git config --global user.name "GitHub Actions Bot"
|
||||
echo "packages/pro-plugins/" >> .git/info/exclude
|
||||
bash release.sh
|
||||
bash release.sh $IS_FEAT
|
||||
env:
|
||||
IS_FEAT: ${{ inputs.is_feat && '--is-feat' || '' }}
|
||||
- name: push pro plugins
|
||||
continue-on-error: true
|
||||
uses: ad-m/github-push-action@master
|
||||
|
@ -1,5 +1,5 @@
|
||||
{
|
||||
"version": "1.0.1-alpha.3",
|
||||
"version": "1.1.0-alpha",
|
||||
"npmClient": "yarn",
|
||||
"useWorkspaces": true,
|
||||
"npmClientArgs": ["--ignore-engines"],
|
||||
|
18
release.sh
18
release.sh
@ -1,4 +1,18 @@
|
||||
yarn version:alpha -y
|
||||
current_version=$(jq -r '.version' lerna.json)
|
||||
IFS='.-' read -r major minor patch label <<< "$current_version"
|
||||
|
||||
if [ "$1" == '--is-feat' ]; then
|
||||
new_minor=$((minor + 1))
|
||||
new_version="$major.$new_minor.0-$label"
|
||||
echo $new_version;
|
||||
else
|
||||
new_patch=$((patch + 1))
|
||||
new_version="$major.$minor.$new_patch-$label"
|
||||
echo $new_version;
|
||||
fi
|
||||
|
||||
lerna version $new_version --preid alpha --force-publish=* --no-git-tag-version -y
|
||||
|
||||
cd ./packages/pro-plugins
|
||||
git add .
|
||||
git commit -m "chore(versions): 😊 publish v$(jq -r '.version' ../../lerna.json)"
|
||||
@ -11,4 +25,4 @@ git tag v$(jq -r '.version' lerna.json)
|
||||
yarn changelog --breaking-pattern "BREAKING CHANGE:"
|
||||
git add .
|
||||
git commit -m "chore: update changelog"
|
||||
#git push --atomic origin main v$(jq -r '.version' lerna.json)
|
||||
# git push --atomic origin main v$(jq -r '.version' lerna.json)
|
||||
|
Loading…
x
Reference in New Issue
Block a user