mirror of
https://gitee.com/nocobase/nocobase.git
synced 2025-05-05 13:39:24 +08:00
Merge branch 'main' into next
This commit is contained in:
commit
1279c3ddcf
2
.github/workflows/auto-merge.yml
vendored
2
.github/workflows/auto-merge.yml
vendored
@ -1,4 +1,4 @@
|
|||||||
name: Auto merge main -> next
|
name: Auto merge
|
||||||
|
|
||||||
concurrency:
|
concurrency:
|
||||||
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.event.inputs.repository }}
|
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.event.inputs.repository }}
|
||||||
|
@ -15,7 +15,7 @@ if [ "$branch" == "main" ]; then
|
|||||||
elif [ "$branch" == "next" ]; then
|
elif [ "$branch" == "next" ]; then
|
||||||
# beta
|
# beta
|
||||||
if [ "$1" == '--is-feat' ]; then
|
if [ "$1" == '--is-feat' ]; then
|
||||||
new_version="$major.$minor.0-beta.0"
|
new_version="$major.$minor.0-beta.1"
|
||||||
echo $new_version;
|
echo $new_version;
|
||||||
else
|
else
|
||||||
new_pre=$((pre + 1))
|
new_pre=$((pre + 1))
|
||||||
@ -26,7 +26,7 @@ elif [ "$branch" == "develop" ]; then
|
|||||||
# alpha
|
# alpha
|
||||||
if [ "$1" == '--is-feat' ]; then
|
if [ "$1" == '--is-feat' ]; then
|
||||||
new_minor=$((minor + 1))
|
new_minor=$((minor + 1))
|
||||||
new_version="$major.$new_minor.0-alpha.0"
|
new_version="$major.$new_minor.0-alpha.1"
|
||||||
echo $new_version;
|
echo $new_version;
|
||||||
else
|
else
|
||||||
new_pre=$((pre + 1))
|
new_pre=$((pre + 1))
|
||||||
|
@ -386,16 +386,18 @@ async function getVersion() {
|
|||||||
const { stdout: tags } = await execa(`git tag -l --sort=creatordate | grep -E "${tagPattern}" | tail -2`, {
|
const { stdout: tags } = await execa(`git tag -l --sort=creatordate | grep -E "${tagPattern}" | tail -2`, {
|
||||||
shell: true,
|
shell: true,
|
||||||
});
|
});
|
||||||
|
const tagsArr = tags.split('\n');
|
||||||
// 过渡处理
|
// 过渡处理
|
||||||
if (tags.length === 1) {
|
if (tagsArr.length === 1) {
|
||||||
if (ver === 'rc') {
|
if (ver === 'rc') {
|
||||||
tags.unshift('v1.3.50-beta');
|
tagsArr.unshift('v1.3.50-beta');
|
||||||
}
|
}
|
||||||
if (ver === 'beta') {
|
if (ver === 'beta') {
|
||||||
tags.unshift('v1.4.0-alpha.17');
|
tagsArr.unshift('v1.4.0-alpha.17');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
[from, to] = tags.split('\n');
|
from = tagsArr[0];
|
||||||
|
to = tagsArr[1];
|
||||||
}
|
}
|
||||||
console.log(`From: ${from}, To: ${to}`);
|
console.log(`From: ${from}, To: ${to}`);
|
||||||
return { from, to };
|
return { from, to };
|
||||||
|
Loading…
x
Reference in New Issue
Block a user