Skip to content

Commit

Permalink
Chore: setup release-please config for both stable and dev
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelveldt committed Oct 28, 2024
1 parent 041bf8a commit 2aeaac5
Show file tree
Hide file tree
Showing 10 changed files with 62 additions and 33 deletions.
26 changes: 0 additions & 26 deletions .github/release-drafter.yml

This file was deleted.

11 changes: 11 additions & 0 deletions .github/workflows/.release-please-config-dev.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json",
"packages": {
".": {
"prerelease": true,
"versioning-strategy": "prerelease",
"prerelease-type": "beta",
"draft": true
}
}
}
8 changes: 8 additions & 0 deletions .github/workflows/.release-please-config-stable.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json",
"packages": {
".": {
"draft": true
}
}
}
3 changes: 3 additions & 0 deletions .github/workflows/.release-please-manifest-dev.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
".": "2.4.0b2"
}
3 changes: 3 additions & 0 deletions .github/workflows/.release-please-manifest-stable.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
".": "2.3.1"
}
28 changes: 21 additions & 7 deletions .github/workflows/release-drafter-stable.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,29 @@
name: Release Drafter

name: Release Notes drafter (release-please) STABLE
on:
push:
branches:
- stable

permissions:
contents: write
pull-requests: write

jobs:
update_release_draft:
release-please:
runs-on: ubuntu-latest
outputs:
version: ${{ steps.release.outputs.tag_name }}
release_created: ${{ steps.release.outputs.release_created }}
steps:
# Drafts your next Release notes as Pull Requests are merged into "master"
- uses: release-drafter/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- uses: googleapis/release-please-action@v4
id: release
with:
token: ${{ secrets.GITHUB_TOKEN }}
release-type: simple
<<<<<<< Updated upstream
manifest-file: .release-please-manifest-stable.json
config-file: .release-please-config-stable.json
=======
manifest-file: .github/workflows/.release-please-manifest-stable.json
config-file: .github/workflows/.release-please-config-stable.json
>>>>>>> Stashed changes
5 changes: 5 additions & 0 deletions .github/workflows/release-please-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,10 @@ jobs:
with:
token: ${{ secrets.GITHUB_TOKEN }}
release-type: simple
<<<<<<< Updated upstream
manifest-file: .release-please-manifest-dev.json
config-file: .release-please-config-dev.json
=======
manifest-file: .github/workflows/.release-please-manifest-dev.json
config-file: .github/workflows/.release-please-config-dev.json
>>>>>>> Stashed changes
File renamed without changes.
8 changes: 8 additions & 0 deletions .release-please-config-stable.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json",
"packages": {
".": {
"draft": true
}
}
}
3 changes: 3 additions & 0 deletions .release-please-manifest-stable.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
".": "2.3.1"
}

0 comments on commit 2aeaac5

Please sign in to comment.