Skip to content

Commit beb1531

Browse files
committed
Inline publish jobs in Makefile
1 parent cc9ceb3 commit beb1531

File tree

2 files changed

+14
-42
lines changed

2 files changed

+14
-42
lines changed

Makefile

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,3 +85,17 @@ test-js-%:
8585

8686
generate-clients:
8787
pnpm generate:clients
88+
89+
# Helpers for publishing
90+
tag-name = $(lastword $(subst /, ,$(call make-path,$1)))
91+
package-version = $(subst ",,$(shell jq -r '.version' $(call make-path,$1)/package.json))
92+
preid-arg = $(subst pre,--preid $2,$(findstring pre,$1))
93+
94+
git-tag-js-%:
95+
@echo "$(call tag-name,$*)@v$(call package-version,$*)"
96+
97+
publish-js-dry-run-%:
98+
cd "$(call make-path,$*)" && pnpm install && pnpm version $(LEVEL) --no-git-tag-version
99+
100+
publish-js-%:
101+
cd "$(call make-path,$*)" && pnpm install && pnpm version $(LEVEL) --no-git-tag-version $(call preid-arg,$(LEVEL),$(TAG)) && pnpm publish --no-git-checks --tag $(TAG)

scripts/publish-js.sh

Lines changed: 0 additions & 42 deletions
This file was deleted.

0 commit comments

Comments
 (0)