5
0
Fork 0
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:
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 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

View file

@ -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