-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile
More file actions
26 lines (22 loc) · 789 Bytes
/
Makefile
File metadata and controls
26 lines (22 loc) · 789 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
.PHONY: test release changelog
test:
npm test
VERSION ?=
release: changelog
@git fetch --tags origin && \
if [ -n "$(VERSION)" ]; then TAG=v$(VERSION); \
else LATEST=$$(git tag -l 'v*' --sort=-v:refname | head -1); \
if [ -z "$$LATEST" ]; then TAG=v1.0.0; \
else V=$${LATEST#v}; P=$${V##*.}; TAG=v$${V%.*}.$$((P+1)); fi; \
fi && \
NEW_VERSION=$${TAG#v} && \
printf "Release $$TAG? [y/N] " && read ans && [ "$$ans" = y ] && \
npm version $$NEW_VERSION --no-git-tag-version && \
git add -A && \
git commit -m "Release $$TAG" && \
git tag "$$TAG" && \
echo "" && \
echo "Release $$TAG created. Push with:" && \
echo " git push origin main && git push origin $$TAG"
changelog:
pi -p --model anthropic/claude-opus-4-6 "Update the changelog using the kchangelog skill"