-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (35 loc) · 1.15 KB
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: release
# Overview ref: https://github.com/googleapis/release-please
# Configuration ref: https://github.com/google-github-actions/release-please-action
on:
workflow_dispatch:
push:
branches:
- main
- master
- develop
defaults:
# Set shell for steps inside containers (default=sh)
run:
shell: bash
jobs:
release:
# For public repos use runs-on: ubuntu-latest
# For private repos use runs-on: self-hosted
runs-on: ubuntu-latest
outputs:
release_created: ${{ steps.release-please.outputs.release_created }}
tag_name: ${{ steps.release-please.outputs.tag_name }}
steps:
- name: release-please
uses: google-github-actions/release-please-action@v3
id: release-please
with:
release-type: simple
# These bumps are honoured only if there is an
# initial tag of v0.1.0 . Create it manually if needed.
#
# BREAKING CHANGE only bumps semver minor if version < 1.0.0
bump-minor-pre-major: true
# feat commits bump semver patch instead of minor if version < 1.0.0
bump-patch-for-minor-pre-major: true