forked from cloudnative-pg/cnpg-i-machinery
-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (33 loc) · 1.19 KB
/
release-please.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
name: release-please
on:
push:
branches:
- main
permissions:
contents: write
pull-requests: write
jobs:
release-please:
runs-on: ubuntu-latest
steps:
# TODO: googleapis/release-please-action cannot sign commits yet.
# We'll use the cli until there's a fix for
# https://github.com/googleapis/release-please/issues/2280.
- uses: actions/setup-node@v4
with:
node-version: 20
# TODO: remove bump-minor-pre-major when in production. It prevents
# release-please from bumping the major version on breaking changes.
# TODO: remove release-as after first release. Used to set the first
# release version, which would default to 1.0.0. Set the version
# manually also for 1.0.0.
- run: |
npx release-please release-pr \
--token="${{ secrets.REPO_PAT }}" \
--repo-url="${{ github.repository }}" \
--bump-minor-pre-major=true \
--release-as=0.1.0 \
--signoff "Peggie <info@cloudnative-pg.io>";
npx release-please github-release \
--token="${{ secrets.REPO_PAT }}" \
--repo-url="${{ github.repository }}" \