Skip to content

Commit 96d2f63

Browse files
committed
ci(release-please): make it possible to create backport releases (nelmio#2593)
## Description Should make it possible to atleast automate versioning for older versions (4.x) 👀 nelmio#2591 (comment) Uses new feature from googleapis/release-please-action#1121 ## What type of PR is this? (check all applicable) - [ ] Bug Fix - [ ] Feature - [ ] Refactor - [ ] Deprecation - [ ] Breaking Change - [ ] Documentation Update - [x] CI ## Checklist - [ ] I have made corresponding changes to the documentation (`docs/`) - [ ] I have made corresponding changes to the changelog (`CHANGELOG.md`)
1 parent 199f618 commit 96d2f63

1 file changed

Lines changed: 25 additions & 0 deletions

File tree

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Release Backport
2+
on:
3+
push:
4+
branches:
5+
- 4.x
6+
7+
permissions:
8+
contents: write
9+
pull-requests: write
10+
11+
jobs:
12+
release-please:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: googleapis/release-please-action@v4.4.0
16+
with:
17+
# this assumes that you have created a personal access token
18+
# (PAT) and configured it as a GitHub action secret named
19+
# `MY_RELEASE_PLEASE_TOKEN` (this secret name is not important).
20+
token: ${{ secrets.GITHUB_TOKEN }}
21+
# this is a built-in strategy in release-please, see "Action Inputs"
22+
# for more options
23+
release-type: php
24+
versioning-strategy: always-bump-patch
25+
release-as: 4.0.0

0 commit comments

Comments
 (0)