From 5c0db234fb4c67909bf021cb75409443264511cc Mon Sep 17 00:00:00 2001 From: Manuel Holtgrewe Date: Mon, 22 Jan 2024 14:08:31 +0100 Subject: [PATCH] chore: make reev frontend npm-instabllable (#401) (#403) --- .github/workflows/release-please.yml | 4 +--- backend/app/__init__.py | 1 + backend/app/_version.py | 1 + frontend/package.json | 2 +- release-please-config.json | 8 ++++++++ 5 files changed, 12 insertions(+), 4 deletions(-) create mode 100644 backend/app/_version.py create mode 100644 release-please-config.json diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml index 1b9ebe527..c11ced36e 100644 --- a/.github/workflows/release-please.yml +++ b/.github/workflows/release-please.yml @@ -18,10 +18,8 @@ jobs: steps: - name: Create GitHub release id: release - uses: GoogleCloudPlatform/release-please-action@v3 + uses: GoogleCloudPlatform/release-please-action@v4 with: - release-type: python - package-name: reev token: ${{ secrets.BOT_TOKEN }} Container-Release: diff --git a/backend/app/__init__.py b/backend/app/__init__.py index e69de29bb..8dee4bf82 100644 --- a/backend/app/__init__.py +++ b/backend/app/__init__.py @@ -0,0 +1 @@ +from ._version import __version__ diff --git a/backend/app/_version.py b/backend/app/_version.py new file mode 100644 index 000000000..6a9beea82 --- /dev/null +++ b/backend/app/_version.py @@ -0,0 +1 @@ +__version__ = "0.4.0" diff --git a/frontend/package.json b/frontend/package.json index 6777cefcb..22e18b106 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -1,6 +1,6 @@ { "name": "reev-frontend", - "version": "0.0.0", + "version": "0.4.0", "private": true, "scripts": { "dev": "vite --port 8081", diff --git a/release-please-config.json b/release-please-config.json new file mode 100644 index 000000000..e2717eddc --- /dev/null +++ b/release-please-config.json @@ -0,0 +1,8 @@ +{ + "$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json", + "release-type": "simple", + "extra-files": [ + "backend/app/_version.py", + "frontend/package.json" + ] +}