From c05d67147b94eb43d9e4934417da5832461c4aec Mon Sep 17 00:00:00 2001 From: Guilherme Souza Date: Tue, 2 Apr 2024 09:49:26 -0300 Subject: [PATCH 1/3] chore: bootstrap releases for path: . --- .release-please-manifest.json | 3 +++ release-please-config.json | 12 ++++++++++++ 2 files changed, 15 insertions(+) create mode 100644 .release-please-manifest.json create mode 100644 release-please-config.json diff --git a/.release-please-manifest.json b/.release-please-manifest.json new file mode 100644 index 00000000..46b1b67c --- /dev/null +++ b/.release-please-manifest.json @@ -0,0 +1,3 @@ +{ + ".": "0.0.0" +} \ No newline at end of file diff --git a/release-please-config.json b/release-please-config.json new file mode 100644 index 00000000..41ecaacb --- /dev/null +++ b/release-please-config.json @@ -0,0 +1,12 @@ +{ + "packages": { + ".": { + "changelog-path": "CHANGELOG.md", + "bump-minor-pre-major": false, + "bump-patch-for-minor-pre-major": false, + "draft": false, + "prerelease": false + } + }, + "$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json" +} \ No newline at end of file From 88937066df58c6784a9f9e5f9047fc3188ba4bdd Mon Sep 17 00:00:00 2001 From: Guilherme Souza Date: Tue, 2 Apr 2024 09:50:53 -0300 Subject: [PATCH 2/3] ci: add release workflow --- .github/workflows/release.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 00000000..1667e9dc --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,16 @@ +on: + push: + branches: + - main + +permissions: + contents: write + pull-requests: write + +name: release-please + +jobs: + release-please: + runs-on: ubuntu-latest + steps: + - uses: google-github-actions/release-please-action@v4 \ No newline at end of file From 86a96ce3ebb81a7db8787e750ddf6ee4b8ce4813 Mon Sep 17 00:00:00 2001 From: Guilherme Souza Date: Tue, 2 Apr 2024 09:52:36 -0300 Subject: [PATCH 3/3] chore: setup release-please manifest --- .release-please-manifest.json | 2 +- Sources/_Helpers/Version.swift | 2 +- release-please-config.json | 5 ++++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 46b1b67c..fe26beef 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.0.0" + ".": "2.5.1" } \ No newline at end of file diff --git a/Sources/_Helpers/Version.swift b/Sources/_Helpers/Version.swift index 33b1e35b..5651c0e5 100644 --- a/Sources/_Helpers/Version.swift +++ b/Sources/_Helpers/Version.swift @@ -1 +1 @@ -package let version = "2.5.1" +package let version = "2.5.1" // {x-release-please-version} diff --git a/release-please-config.json b/release-please-config.json index 41ecaacb..12d98c3e 100644 --- a/release-please-config.json +++ b/release-please-config.json @@ -5,7 +5,10 @@ "bump-minor-pre-major": false, "bump-patch-for-minor-pre-major": false, "draft": false, - "prerelease": false + "prerelease": false, + "extra-files": [ + "Sources/_Helpers/Version.swift" + ] } }, "$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json"