From 4c9b26f56d10fa26ed2a4603d192dfe3c814b570 Mon Sep 17 00:00:00 2001 From: literat Date: Tue, 8 Oct 2024 16:51:17 +0200 Subject: [PATCH] Chore(ci): Allow passing distribution tag to published package * @see: https://docs.npmjs.com/cli/v10/commands/npm-dist-tag --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index e40c3142dc..0c94f3fc11 100644 --- a/Makefile +++ b/Makefile @@ -108,7 +108,8 @@ publish: ## Publish packages to repository, pass the parameter "pkg=" to publish else publish: @$(eval pkg ?=) - $(PKG_EXECUTE) $(MONOREPO_TOOL) publish from-package --yes $(MONOREPO_TOOL_FLAGS) + @$(eval dist-tag ?= latest) + $(PKG_EXECUTE) $(MONOREPO_TOOL) publish dist-tag=$(dist-tag) from-package --yes $(MONOREPO_TOOL_FLAGS) endif ## —— Miscellaneous 🛠️ ——————————————————————————————————————————————————————————————