RELEASING: Releasing 1 package(s)

Releases:
  @warkypublic/artemis-kit@1.1.1

[skip ci]
This commit is contained in:
warkanum committed 2026-09-23 22:21:22 +02:00
1 parent b137801a22
commit e01f38ab39
5 files changed
+86 -1

No files matched your search

+16
View File
@@ -42,6 +42,22 @@ repository's user or organization (not necessarily the npm scope `warkypublic`).
pnpm, which applies the `publishConfig` entries for built JavaScript and pnpm, which applies the `publishConfig` entries for built JavaScript and
declarations. declarations.
## Cutting a release with `make release`
`make release [BUMP=patch|minor|major]` (default `patch`) runs
`scripts/release.sh`, which:
1. Finds commits since the last changeset file (`.changeset/*.md`) and writes
a new changeset from their subject lines, bumping `@warkypublic/artemis-kit`
by `BUMP`.
2. Runs `pnpm changeset version` to consume the changeset and bump the
package version/changelog.
3. Commits the result, tags it `v<new-version>`, and pushes the commit and
tag to `origin` (GitHub) — this triggers `.github/workflows/publish_github.yml`.
It exits without changes if there are no commits since the last changeset, or
if the resulting tag already exists.
Stable versions receive the `latest` dist-tag; prereleases receive `next`. Stable versions receive the `latest` dist-tag; prereleases receive `next`.
Existing package versions cannot be overwritten; release a new version instead. Existing package versions cannot be overwritten; release a new version instead.
This workflow adds Gitea as a publishing destination without changing the default This workflow adds Gitea as a publishing destination without changing the default
+10
View File
@@ -1,5 +1,15 @@
# @warkypublic/artemis-kit # @warkypublic/artemis-kit
## 1.1.1
### Patch Changes
- - ci(publish): update checkout ref logic for release tags
- ci(publish): update workflow to include release tag verification
- ci(publish): add GitHub Actions workflow for package publishing
- ci(publish): update workflow to require release_tag input
- docs(publish): update publishing instructions for manual dispatch
## 1.1.0 ## 1.1.0
### Minor Changes ### Minor Changes
+5
View File
@@ -0,0 +1,5 @@
.PHONY: release
# Usage: make release [BUMP=patch|minor|major]
release:
@BUMP=$(BUMP) ./scripts/release.sh
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "@warkypublic/artemis-kit", "name": "@warkypublic/artemis-kit",
"version": "1.1.0", "version": "1.1.1",
"description": "A comprehensive TypeScript/JavaScript utility library focused on precision and efficiency.", "description": "A comprehensive TypeScript/JavaScript utility library focused on precision and efficiency.",
"type": "module", "type": "module",
"main": "./src/index.ts", "main": "./src/index.ts",
+54
View File
@@ -0,0 +1,54 @@
#!/usr/bin/env bash
# Creates a changeset from commits since the last one, versions the
# package, tags the result, and pushes the tag to the git remote.
set -euo pipefail
BUMP="${BUMP:-patch}"
case "$BUMP" in
patch|minor|major) ;;
*) echo "BUMP must be patch, minor, or major (got: $BUMP)" >&2; exit 1 ;;
esac
PACKAGE_NAME=$(node -p "require('./package.json').name")
LAST_CHANGESET_COMMIT=$(git log -1 --format=%H -- '.changeset/*.md' || true)
if [ -n "$LAST_CHANGESET_COMMIT" ]; then
RANGE="${LAST_CHANGESET_COMMIT}..HEAD"
else
RANGE="HEAD"
fi
COMMITS=$(git log --format='- %s' "$RANGE" -- . ':!.changeset')
if [ -z "$COMMITS" ]; then
echo "No commits found since the last changeset ($RANGE); nothing to release." >&2
exit 1
fi
CHANGESET_FILE=".changeset/release-$(date +%Y%m%d%H%M%S).md"
{
echo "---"
echo "\"$PACKAGE_NAME\": $BUMP"
echo "---"
echo
echo "$COMMITS"
} > "$CHANGESET_FILE"
echo "Created $CHANGESET_FILE:"
cat "$CHANGESET_FILE"
pnpm changeset version
NEW_VERSION=$(node -p "require('./package.json').version")
TAG="v${NEW_VERSION}"
if git rev-parse "$TAG" >/dev/null 2>&1; then
echo "Tag $TAG already exists" >&2
exit 1
fi
git add -A
git commit -m "RELEASING: Releasing 1 package(s)"
git tag "$TAG"
git push origin HEAD "$TAG"
echo "Released and pushed $TAG"