Skip to content

Commit

Permalink
feat: Introduce release-please (#12)
Browse files Browse the repository at this point in the history
Introduces the release-please to the repository.
The workflow will be tweaked further in subsequent PRs.
  • Loading branch information
popzxc authored Aug 29, 2024
1 parent 653bd47 commit 4bb5cca
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/release-please/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
".": "0.150.4"
}
10 changes: 10 additions & 0 deletions .github/release-please/manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"bootstrap-sha": "653bd479e3604c81852702c6870f0cb8a4540508",
"bump-minor-pre-major": true,
"bump-patch-for-minor-pre-major": true,
"packages": {
".": {
"release-type": "simple"
}
}
}
29 changes: 29 additions & 0 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
on:
push:
branches:
- main
workflow_dispatch:

permissions:
contents: write
pull-requests: write

name: release-please
jobs:
release-please:
runs-on: ubuntu-latest
steps:
- name: Run release-please
id: release
uses: googleapis/release-please-action@7987652d64b4581673a76e33ad5e98e3dd56832f # v4.1.3
with:
token: ${{ secrets.RELEASE_TOKEN }}
config-file: .github/release-please/config.json
manifest-file: .github/release-please/manifest.json

- name: Send Release Info
if: ${{ steps.release.outputs.releases_created == 'true' }}
uses: matter-labs/format-release-please-for-slack-action@69e6fe9e4ec531b7b5fb0d826f73c190db83cf42 # v2.1.0
with:
release-please-output: ${{ toJSON(steps.release.outputs) }}
slack-webhook-url: ${{ secrets.SLACK_WEBHOOK_RELEASES }}
Empty file added CHANGELOG.md
Empty file.

0 comments on commit 4bb5cca

Please sign in to comment.