From 7d6072d194998f9f38b081e769af52aa902a605d Mon Sep 17 00:00:00 2001 From: "authentik-automation[bot]" <135050075+authentik-automation[bot]@users.noreply.github.com> Date: Tue, 17 Feb 2026 13:02:24 +0100 Subject: [PATCH] root: do not rely on npm cli for version bump (cherry-pick #20276 to version-2025.12) (#20320) root: do not rely on npm cli for version bump Signed-off-by: Marc 'risson' Schmitt Co-authored-by: authentik-automation[bot] <135050075+authentik-automation[bot]@users.noreply.github.com> --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 8f00012ba9..bb08bab20d 100644 --- a/Makefile +++ b/Makefile @@ -119,11 +119,11 @@ bump: ## Bump authentik version. Usage: make bump version=20xx.xx.xx ifndef version $(error Usage: make bump version=20xx.xx.xx ) endif + $(eval current_version := $(shell cat ${PWD}/internal/constants/VERSION)) sed -i 's/^version = ".*"/version = "$(version)"/' pyproject.toml sed -i 's/^VERSION = ".*"/VERSION = "$(version)"/' authentik/__init__.py $(MAKE) gen-build gen-compose aws-cfn - npm version --no-git-tag-version --allow-same-version $(version) - cd ${PWD}/web && npm version --no-git-tag-version --allow-same-version $(version) + sed -i "s/\"${current_version}\"/\"$(version)\"/" ${PWD}/package.json ${PWD}/package-lock.json ${PWD}/web/package.json ${PWD}/web/package-lock.json echo -n $(version) > ${PWD}/internal/constants/VERSION #########################