Merge remote-tracking branch 'origin/v1.x' into v1.x #31
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 如果是开发合并请求到主干,则会根据约定式提交创建一个 releasePR,是一个新版本合并请求。 | |
name: release please | |
on: | |
push: | |
branches: | |
- v*.x | |
jobs: | |
release: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
pull-requests: write | |
outputs: | |
release_created: ${{ steps.release.outputs.release_created }} | |
major: ${{ steps.release.outputs.major }} | |
minor: ${{ steps.release.outputs.minor }} | |
steps: | |
- uses: google-github-actions/release-please-action@v3 | |
id: release | |
with: | |
release-type: node | |
bump-minor-pre-major: true | |
default-branch: ${{ github.ref_name }} | |
create-version: | |
runs-on: ubuntu-latest | |
needs: release | |
if: needs.release.outputs.release_created | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: jacobsvante/tag-major-minor-action@v0 | |
with: | |
major: ${{ needs.release.outputs.major }} | |
minor: ${{ needs.release.outputs.minor }} |