From 0b0052daf85bea6f72d385e63bd8b3df4315ccdc Mon Sep 17 00:00:00 2001 From: Ilja Leiko Date: Fri, 16 May 2025 15:43:10 +0200 Subject: [PATCH 1/2] ci: add release please --- .github/workflows/release-please.yml | 20 +++ .release-please-manifest.json | 3 + release-please-config.json | 192 +++++++++++++++++++++++++++ 3 files changed, 215 insertions(+) create mode 100644 .github/workflows/release-please.yml create mode 100644 .release-please-manifest.json create mode 100644 release-please-config.json diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml new file mode 100644 index 000000000..4c1b925f5 --- /dev/null +++ b/.github/workflows/release-please.yml @@ -0,0 +1,20 @@ +name: Release Please + +on: + push: + branches: + - main + +permissions: + contents: write + pull-requests: write + issues: write + +jobs: + release-please: + runs-on: ubuntu-latest + steps: + - uses: googleapis/release-please-action@v4 + id: release + with: + token: ${{ github.token }} \ No newline at end of file diff --git a/.release-please-manifest.json b/.release-please-manifest.json new file mode 100644 index 000000000..fea345409 --- /dev/null +++ b/.release-please-manifest.json @@ -0,0 +1,3 @@ +{ + ".": "1.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 000000000..e59cf41d7 --- /dev/null +++ b/release-please-config.json @@ -0,0 +1,192 @@ +{ + "$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json", + "release-type": "simple", + "include-component-in-tag": false, + "packages": { + ".": { + "extra-files": [ + { + "type": "json", + "path": "frontend/package.json", + "jsonpath": "version" + }, + { + "type": "json", + "path": "apps/api/package.json", + "jsonpath": "version" + }, + { + "type": "json", + "path": "apps/docs/package.json", + "jsonpath": "version" + }, + { + "type": "json", + "path": "apps/public/package.json", + "jsonpath": "version" + }, + { + "type": "json", + "path": "apps/worker/package.json", + "jsonpath": "version" + }, + { + "type": "json", + "path": "packages/db/package.json", + "jsonpath": "version" + }, + { + "type": "json", + "path": "packages/cli/package.json", + "jsonpath": "version" + }, + { + "type": "json", + "path": "self-hosting/package.json", + "jsonpath": "version" + }, + { + "type": "json", + "path": "packages/trpc/package.json", + "jsonpath": "version" + }, + { + "type": "json", + "path": "apps/dashboard/package.json", + "jsonpath": "version" + }, + { + "type": "json", + "path": "packages/email/package.json", + "jsonpath": "version" + }, + { + "type": "json", + "path": "packages/queue/package.json", + "jsonpath": "version" + }, + { + "type": "json", + "path": "packages/redis/package.json", + "jsonpath": "version" + }, + { + "type": "json", + "path": "packages/common/package.json", + "jsonpath": "version" + }, + { + "type": "json", + "path": "packages/logger/package.json", + "jsonpath": "version" + }, + { + "type": "json", + "path": "tooling/publish/package.json", + "jsonpath": "version" + }, + { + "type": "json", + "path": "packages/payments/package.json", + "jsonpath": "version" + }, + { + "type": "json", + "path": "packages/sdks/sdk/package.json", + "jsonpath": "version" + }, + { + "type": "json", + "path": "packages/sdks/web/package.json", + "jsonpath": "version" + }, + { + "type": "json", + "path": "packages/constants/package.json", + "jsonpath": "version" + }, + { + "type": "json", + "path": "tooling/typescript/package.json", + "jsonpath": "version" + }, + { + "type": "json", + "path": "packages/sdks/_info/package.json", + "jsonpath": "version" + }, + { + "type": "json", + "path": "packages/sdks/astro/package.json", + "jsonpath": "version" + }, + { + "type": "json", + "path": "packages/sdks/validation/package.json", + "jsonpath": "version" + }, + { + "type": "json", + "path": "packages/sdks/nextjs/package.json", + "jsonpath": "version" + }, + { + "type": "json", + "path": "packages/integrations/package.json", + "jsonpath": "version" + }, + { + "type": "json", + "path": "packages/sdks/express/package.json", + "jsonpath": "version" + }, + { + "type": "json", + "path": "packages/sdks/react-native/package.json", + "jsonpath": "version" + } + ] + } + }, + "changelog-sections": [ + { + "type": "feat", + "section": "Features" + }, + { + "type": "fix", + "section": "Fixes" + }, + { + "type": "docs", + "section": "Documentation" + }, + { + "type": "style", + "section": "Styling" + }, + { + "type": "refactor", + "section": "Code Refactoring" + }, + { + "type": "perf", + "section": "Performance Improvements" + }, + { + "type": "test", + "section": "Tests", + "hidden": true + }, + { + "type": "build", + "section": "Build System", + "hidden": true + }, + { + "type": "ci", + "section": "Continuous Integration", + "hidden": true + } + ] +} \ No newline at end of file From 3ef64339ef7753c802c19eee69670a0c39fd4c07 Mon Sep 17 00:00:00 2001 From: Ilja Leiko Date: Tue, 10 Jun 2025 07:59:00 +0200 Subject: [PATCH 2/2] fix: only bump package.json and apps --- release-please-config.json | 116 +------------------------------------ 1 file changed, 3 insertions(+), 113 deletions(-) diff --git a/release-please-config.json b/release-please-config.json index e59cf41d7..10703f994 100644 --- a/release-please-config.json +++ b/release-please-config.json @@ -7,12 +7,12 @@ "extra-files": [ { "type": "json", - "path": "frontend/package.json", + "path": "apps/api/package.json", "jsonpath": "version" }, { "type": "json", - "path": "apps/api/package.json", + "path": "apps/dashboard/package.json", "jsonpath": "version" }, { @@ -30,120 +30,10 @@ "path": "apps/worker/package.json", "jsonpath": "version" }, - { - "type": "json", - "path": "packages/db/package.json", - "jsonpath": "version" - }, - { - "type": "json", - "path": "packages/cli/package.json", - "jsonpath": "version" - }, { "type": "json", "path": "self-hosting/package.json", "jsonpath": "version" - }, - { - "type": "json", - "path": "packages/trpc/package.json", - "jsonpath": "version" - }, - { - "type": "json", - "path": "apps/dashboard/package.json", - "jsonpath": "version" - }, - { - "type": "json", - "path": "packages/email/package.json", - "jsonpath": "version" - }, - { - "type": "json", - "path": "packages/queue/package.json", - "jsonpath": "version" - }, - { - "type": "json", - "path": "packages/redis/package.json", - "jsonpath": "version" - }, - { - "type": "json", - "path": "packages/common/package.json", - "jsonpath": "version" - }, - { - "type": "json", - "path": "packages/logger/package.json", - "jsonpath": "version" - }, - { - "type": "json", - "path": "tooling/publish/package.json", - "jsonpath": "version" - }, - { - "type": "json", - "path": "packages/payments/package.json", - "jsonpath": "version" - }, - { - "type": "json", - "path": "packages/sdks/sdk/package.json", - "jsonpath": "version" - }, - { - "type": "json", - "path": "packages/sdks/web/package.json", - "jsonpath": "version" - }, - { - "type": "json", - "path": "packages/constants/package.json", - "jsonpath": "version" - }, - { - "type": "json", - "path": "tooling/typescript/package.json", - "jsonpath": "version" - }, - { - "type": "json", - "path": "packages/sdks/_info/package.json", - "jsonpath": "version" - }, - { - "type": "json", - "path": "packages/sdks/astro/package.json", - "jsonpath": "version" - }, - { - "type": "json", - "path": "packages/sdks/validation/package.json", - "jsonpath": "version" - }, - { - "type": "json", - "path": "packages/sdks/nextjs/package.json", - "jsonpath": "version" - }, - { - "type": "json", - "path": "packages/integrations/package.json", - "jsonpath": "version" - }, - { - "type": "json", - "path": "packages/sdks/express/package.json", - "jsonpath": "version" - }, - { - "type": "json", - "path": "packages/sdks/react-native/package.json", - "jsonpath": "version" } ] } @@ -189,4 +79,4 @@ "hidden": true } ] -} \ No newline at end of file +}