5
0
Fork 0
mirror of https://github.com/cycjimmy/semantic-release-action.git synced 2025-11-07 10:46:56 +00:00

ci: modify ci tasks

This commit is contained in:
Geoffrey.C 2022-03-21 11:09:16 +08:00
parent 32ba2144e2
commit 46ed3f6eca
2 changed files with 21 additions and 13 deletions

View file

@ -1,12 +1,10 @@
name: Release
on:
pull_request:
branches:
- master
push:
branches:
- master
- main
- next
- next-major
- alpha
@ -24,6 +22,22 @@ jobs:
uses: ./
id: semantic
with:
branches: |
[
'+([0-9])?(.{+([0-9]),x}).x',
'master',
'main',
'next',
'next-major',
{
name: 'beta',
prerelease: true
},
{
name: 'alpha',
prerelease: true
}
]
extra_plugins: |
@semantic-release/git
@semantic-release/changelog

View file

@ -1,17 +1,11 @@
name: Test Release
on:
push:
pull_request:
branches:
- master
- next
- next-major
- alpha
- beta
- 'feat/**'
- 'fix/**'
- 'perf/**'
- 'refactor/**'
- main
push:
schedule:
- cron: 0 2 * * 0
@ -33,6 +27,7 @@ jobs:
[
'+([0-9])?(.{+([0-9]),x}).x',
'master',
'main',
'next',
'next-major',
{
@ -44,7 +39,6 @@ jobs:
prerelease: true
}
]
branch: master
extra_plugins: |
@semantic-release/git
@semantic-release/changelog