ci(release): setup release-please

This commit is contained in:
2023-05-07 21:58:37 +01:00
parent 2d86b2afb6
commit e241f0f96c
3 changed files with 33 additions and 0 deletions

17
.github/release-please-config.json vendored Normal file
View File

@@ -0,0 +1,17 @@
{
"packages": {
".": {
"release-type": "simple",
"changelog-path": "CHANGELOG.md",
"extra-files": [
"README.md"
],
"bump-minor-pre-major": true,
"bump-patch-for-minor-pre-major": true,
"draft": false,
"prerelease": false,
"initial-version": "0.0.1"
}
},
"$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json"
}

3
.github/release-please-manifest.json vendored Normal file
View File

@@ -0,0 +1,3 @@
{
".": "0.0.0"
}

13
.github/workflows/ci.yml vendored Normal file
View File

@@ -0,0 +1,13 @@
---
name: CI
on: push
jobs:
release-please:
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main'
steps:
- uses: jimeh/release-please-manifest-action@main
with:
app-id: ${{ secrets.RELEASE_BOT_APP_ID }}
private-key: ${{ secrets.RELEASE_BOT_PRIVATE_KEY }}