mirror of
https://github.com/cycjimmy/semantic-release-action.git
synced 2025-11-08 19:26:55 +00:00
ci: modify ci tasks
This commit is contained in:
parent
32ba2144e2
commit
46ed3f6eca
2 changed files with 21 additions and 13 deletions
20
.github/workflows/release.yml
vendored
20
.github/workflows/release.yml
vendored
|
|
@ -1,12 +1,10 @@
|
||||||
name: Release
|
name: Release
|
||||||
|
|
||||||
on:
|
on:
|
||||||
pull_request:
|
|
||||||
branches:
|
|
||||||
- master
|
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- master
|
- master
|
||||||
|
- main
|
||||||
- next
|
- next
|
||||||
- next-major
|
- next-major
|
||||||
- alpha
|
- alpha
|
||||||
|
|
@ -24,6 +22,22 @@ jobs:
|
||||||
uses: ./
|
uses: ./
|
||||||
id: semantic
|
id: semantic
|
||||||
with:
|
with:
|
||||||
|
branches: |
|
||||||
|
[
|
||||||
|
'+([0-9])?(.{+([0-9]),x}).x',
|
||||||
|
'master',
|
||||||
|
'main',
|
||||||
|
'next',
|
||||||
|
'next-major',
|
||||||
|
{
|
||||||
|
name: 'beta',
|
||||||
|
prerelease: true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'alpha',
|
||||||
|
prerelease: true
|
||||||
|
}
|
||||||
|
]
|
||||||
extra_plugins: |
|
extra_plugins: |
|
||||||
@semantic-release/git
|
@semantic-release/git
|
||||||
@semantic-release/changelog
|
@semantic-release/changelog
|
||||||
|
|
|
||||||
14
.github/workflows/testRelease.yml
vendored
14
.github/workflows/testRelease.yml
vendored
|
|
@ -1,17 +1,11 @@
|
||||||
name: Test Release
|
name: Test Release
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
pull_request:
|
||||||
branches:
|
branches:
|
||||||
- master
|
- master
|
||||||
- next
|
- main
|
||||||
- next-major
|
push:
|
||||||
- alpha
|
|
||||||
- beta
|
|
||||||
- 'feat/**'
|
|
||||||
- 'fix/**'
|
|
||||||
- 'perf/**'
|
|
||||||
- 'refactor/**'
|
|
||||||
|
|
||||||
schedule:
|
schedule:
|
||||||
- cron: 0 2 * * 0
|
- cron: 0 2 * * 0
|
||||||
|
|
@ -33,6 +27,7 @@ jobs:
|
||||||
[
|
[
|
||||||
'+([0-9])?(.{+([0-9]),x}).x',
|
'+([0-9])?(.{+([0-9]),x}).x',
|
||||||
'master',
|
'master',
|
||||||
|
'main',
|
||||||
'next',
|
'next',
|
||||||
'next-major',
|
'next-major',
|
||||||
{
|
{
|
||||||
|
|
@ -44,7 +39,6 @@ jobs:
|
||||||
prerelease: true
|
prerelease: true
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
branch: master
|
|
||||||
extra_plugins: |
|
extra_plugins: |
|
||||||
@semantic-release/git
|
@semantic-release/git
|
||||||
@semantic-release/changelog
|
@semantic-release/changelog
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue