ci: use semantic release action v3

This commit is contained in:
rlespinasse
2022-06-16 23:08:50 +02:00
committed by Romain Lespinasse
parent 944fee4603
commit 99afdf4551
4 changed files with 2252 additions and 1865 deletions

29
.github/workflows/release-dryrun.yml vendored Normal file
View File

@@ -0,0 +1,29 @@
name: '[v3] Release DryRun'
on:
push:
branches-ignore:
- v*.x
jobs:
release-dryrun:
runs-on: ubuntu-latest
steps:
- uses: technote-space/auto-cancel-redundant-workflow@v1
- uses: actions/checkout@v2
- run: npm install
- run: npm run all
- uses: ./
- uses: cycjimmy/semantic-release-action@v3
with:
branches: |
[
"${{ env.GITHUB_REF_NAME }}"
]
extra_plugins: |
@semantic-release/changelog
@semantic-release/exec
@semantic-release/git
dry_run: true
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}

View File

@@ -1,4 +1,4 @@
name: "[v3] Release"
name: '[v3] Release'
on:
push:
@@ -13,6 +13,11 @@ jobs:
- uses: actions/checkout@v2
- run: npm install
- run: npm run all
- uses: cycjimmy/semantic-release-action@v2
- uses: cycjimmy/semantic-release-action@v3
with:
extra_plugins: |
@semantic-release/changelog
@semantic-release/exec
@semantic-release/git
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GH_TOKEN: ${{ secrets.GH_TOKEN }}