From 6e51d044bb3e83dcfe11c91b23c0e8f408e02d49 Mon Sep 17 00:00:00 2001 From: "authentik-automation[bot]" <135050075+authentik-automation[bot]@users.noreply.github.com> Date: Mon, 16 Feb 2026 11:41:36 +0100 Subject: [PATCH] root: do not rely on npm cli for version bump (cherry-pick #20276 to version-2026.2) (#20321) root: do not rely on npm cli for version bump (#20276) Co-authored-by: Marc 'risson' Schmitt --- Makefile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index e3c4307475..129ed16190 100644 --- a/Makefile +++ b/Makefile @@ -148,11 +148,11 @@ bump: ## Bump authentik version. Usage: make bump version=20xx.xx.xx ifndef version $(error Usage: make bump version=20xx.xx.xx ) endif - $(SED_INPLACE) 's/^version = ".*"/version = "$(version)"/' pyproject.toml - $(SED_INPLACE) 's/^VERSION = ".*"/VERSION = "$(version)"/' authentik/__init__.py + $(eval current_version := $(shell cat ${PWD}/internal/constants/VERSION)) + $(SED_INPLACE) 's/^version = ".*"/version = "$(version)"/' ${PWD}/pyproject.toml + $(SED_INPLACE) 's/^VERSION = ".*"/VERSION = "$(version)"/' ${PWD}/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_INPLACE) "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 #########################