Skip to content

armgit / Pake

Public Imported from GitHub
0

Turn any website into a lightweight desktop app with one command, on macOS, Windows and Linux.

docs: expand release runbook with npm hotfix path and triage rules

Tw93bf0c869633a9
diff --git a/.agents/skills/release/SKILL.md b/.agents/skills/release/SKILL.md
index 4c41a766..9de7dadb 100644
--- a/.agents/skills/release/SKILL.md
+++ b/.agents/skills/release/SKILL.md
@@ -1,7 +1,7 @@
---
name: release
description: Prepare, validate, and publish a Pake release. Not for version bumps without release intent.
-version: 1.2.0
+version: 1.3.0
allowed-tools:
- Bash
- Read
@@ -57,6 +57,7 @@ Tag format: uppercase `V` prefix (e.g. `V3.11.0`), not `v3.11.0`.
7. [ ] Verify npm published the exact package: `npm view [email protected] version gitHead dist.tarball --json`
8. [ ] Verify latest now resolves to the release: `npm view pake-cli version`
9. [ ] Record Quality & Testing status separately: `gh run list --workflow=quality-and-test.yml --limit 3`
+10. [ ] After the notes are published, add all six positive reactions to the release: resolve the release id from the tag, POST `+1`, `laugh`, `heart`, `hooray`, `rocket`, and `eyes` each to `repos/tw93/Pake/releases/<id>/reactions` via `gh api`, then re-read the reactions to confirm. Never add `-1` or `confused`.
npm publishes through Trusted Publishing from `.github/workflows/npm-publish.yml`. Configure npm package settings with GitHub Actions, `tw93/Pake`, workflow file `npm-publish.yml`, and no environment. Local `npm publish` is only a fallback if CI or registry state blocks the trusted path.
@@ -71,7 +72,7 @@ Do not collapse these into "released" without naming which surface was verified.
## GitHub Release Notes
-CI only creates a bare placeholder release. Every published release must be edited to match the house format, or it looks broken next to the others. Two failure modes to avoid: a bare version title with no codename, and a body missing the logo header / star line / repo footer (see `V3.11.10` and `V3.12.0`, both fixed after the fact).
+CI only creates a bare placeholder release. Every published release must be edited to match the house format, or it looks broken next to the others. Before writing notes, run `gh release view <previous release>` and treat its structure as the hard template, title codename included. Two failure modes to avoid: a bare version title with no codename, and a body missing the logo header / star line / repo footer (see `V3.11.10` and `V3.12.0`, both fixed after the fact).
### Title format
diff --git a/AGENTS.md b/AGENTS.md
index 8d92af7e..7fce0408 100644
--- a/AGENTS.md
+++ b/AGENTS.md
@@ -155,6 +155,8 @@ The workflow can also be triggered manually via `workflow_dispatch` with options
Pushing the same `V*` tag also triggers `.github/workflows/npm-publish.yml`, which publishes `pake-cli` to npm through Trusted Publishing. Configure the npm package's Trusted Publisher as GitHub Actions, `tw93/Pake`, workflow file `npm-publish.yml`, with no environment. Local `npm publish` is only a fallback when CI or npm registry state blocks the trusted path.
+`npm-publish.yml` also supports `workflow_dispatch` from `main` for npm-only CLI hotfixes: bump the version files on `main`, then trigger the workflow to publish to npm without a `V*` tag or app release. npm publish and `git tag` are therefore independent actions; never infer one from the other. At the start of any release task, restate which surfaces this round touches (npm package, GitHub Release + app assets, Docker, git tag) and let the maintainer confirm. Each publish, tag, or issue-close action needs maintainer authorization in the current turn.
+
Before treating an npm release as shipped, verify both `gh workflow list --all | grep "Publish npm Package"` and `npm view [email protected] version`. Prefer `npm view [email protected] version gitHead dist.tarball --json` so the published package can be tied back to the intended commit. Do not reply to or close GitHub issues as released until the public registry returns the expected version.
For release follow-through, keep these boundaries explicit:
@@ -175,6 +177,18 @@ Pake uses official npm and Rust sources by default. CN mirrors are explicit opt-
- If an install fails against a CN mirror, retry the same install command to separate network availability from a product regression.
- `bin/utils/mirror.ts` and `bin/builders/BaseBuilder.ts` own this behavior; keep docs and tests aligned when changing it.
+## Issue Closeout After a Fix
+
+Default loop for a fixed user-reported CLI bug: ship the fix as an npm patch release first, then reply to the reporter with the concrete upgrade command (`npm install -g pake-cli@latest`, or `[email protected]` when `latest` may point elsewhere), then close the issue noting it can be reopened if the problem persists. Do not reply "fixed" pointing at an unreleased commit; the npm registry must return the fix version first. The publish itself follows the authorization rule in Release Workflow above.
+
+## Community PR Triage
+
+Sort every community PR into one of three outcomes; never rewrite a contribution as a new self-authored PR:
+
+- **Merge as-is**: implementation is sound. Verify locally (build + relevant tests), merge, thank the author.
+- **Right direction, implementation needs work**: push fixes directly onto the contributor's branch so their authorship is preserved, then merge and reply summarizing what was changed and why.
+- **Out of scope**: close as not planned with a one-line apology and the boundary reason (what Pake deliberately does not do). Keep it friendly and leave room for discussion.
+
## CLI Usage Example
```bash