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: harden release agent guidance

Tw93f44468e75f81
diff --git a/.agents/skills/code-review/SKILL.md b/.agents/skills/code-review/SKILL.md
index c2f9491b..e352a7f1 100644
--- a/.agents/skills/code-review/SKILL.md
+++ b/.agents/skills/code-review/SKILL.md
@@ -1,7 +1,7 @@
---
name: code-review
description: Pake project adapter for Waza check/code-review. Use for TypeScript CLI, Rust/Tauri, release artifact, and CI review.
-version: 1.1.0
+version: 1.2.0
allowed-tools:
- Bash
- Read
@@ -17,7 +17,9 @@ Use Waza `/check` for the generic review method. This adapter adds Pake-specific
## Pake-Specific Hard Stops
- [ ] Changes under `bin/` rebuild and commit `dist/cli.js` with `pnpm run cli:build`.
-- [ ] Release version bumps keep `package.json`, `src-tauri/Cargo.toml`, and `src-tauri/tauri.conf.json` in sync.
+- [ ] Changes to package metadata embedded by Rollup (`package.json` name/version/repository/bin/scripts/exports) rebuild and commit `dist/cli.js`.
+- [ ] Release version bumps keep `package.json`, `src-tauri/Cargo.toml`, `src-tauri/Cargo.lock`, and `src-tauri/tauri.conf.json` in sync.
+- [ ] npm release workflow changes preserve Trusted Publishing: `.github/workflows/npm-publish.yml`, `id-token: write`, canonical `git+https://github.com/tw93/Pake.git`, and `scripts/check-release-version.mjs`.
- [ ] No new `tauriConf: any` or other untyped config objects; use `PakeTauriConfig`.
- [ ] No user-reachable `panic!` or `.unwrap()` on config, CLI, or event paths.
- [ ] Silent `catch {}` blocks surface the real error through `logger.warn`.
diff --git a/.agents/skills/github-ops/SKILL.md b/.agents/skills/github-ops/SKILL.md
index 0f610371..168cb655 100644
--- a/.agents/skills/github-ops/SKILL.md
+++ b/.agents/skills/github-ops/SKILL.md
@@ -1,7 +1,7 @@
---
name: github-ops
description: GitHub issue, PR, and release operations via gh CLI. Not for code review or release builds.
-version: 1.0.0
+version: 1.1.0
allowed-tools:
- Bash
- Read
@@ -70,12 +70,17 @@ gh release view V3.10.0
# Check CI runs for a tag
gh run list --workflow=release.yml
+gh run list --workflow=npm-publish.yml
# Watch a running CI job
gh run watch
# View CI run logs
gh run view <run-id> --log
+
+# Verify npm registry state after publish
+npm view pake-cli version
+npm view pake-cli@<version> dist.tarball
```
## CI / Workflow Operations
@@ -98,3 +103,5 @@ gh run rerun <run-id> --failed-only
2. **NEVER** merge, close, or modify without explicit user request.
3. **ALWAYS** query current state before taking action — never assume.
4. Before replying to an issue or PR, read the body to confirm the author's language; match their language in the reply. This applies to the author, not to arbitrary thread commenters.
+5. Before replying that a fix is released, verify the public artifact first: `npm view pake-cli version` for CLI releases or `gh release view <tag>` for app releases.
+6. Before closing an issue after release, confirm the target with `gh issue view <id> --json number,title,state,author,url` and include the concrete version or upgrade command in the comment.
diff --git a/.agents/skills/release/SKILL.md b/.agents/skills/release/SKILL.md
index 19833a63..33d5e518 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.0.0
+version: 1.1.0
allowed-tools:
- Bash
- Read
@@ -50,11 +50,19 @@ Tag format: uppercase `V` prefix (e.g. `V3.11.0`), not `v3.11.0`.
1. [ ] Confirm CI triggered: `gh run list --workflow=release.yml`
2. [ ] Watch CI status: `gh run watch`
3. [ ] Verify GitHub Release was created: `gh release view VX.X.X`
-4. [ ] Confirm npm Trusted Publishing triggered: `gh run list --workflow=npm-publish.yml`
-5. [ ] Verify npm published the package: `npm view pake-cli version`
+4. [ ] Confirm npm workflow exists and is active: `gh workflow list --all | grep "Publish npm Package"`
+5. [ ] Confirm npm Trusted Publishing triggered: `gh run list --workflow=npm-publish.yml`
+6. [ ] Verify npm published the package: `npm view pake-cli version` and `npm view [email protected] dist.tarball`
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.
+## Trusted Publishing Notes
+
+- The first real Trusted Publishing test must use a new version and a new `V*` tag; do not retry an already-published version.
+- npm package settings should use the strict publishing option: require two-factor authentication and disallow tokens. Trusted Publishing still works with this setting.
+- If local fallback is unavoidable, prefer `npm exec --yes [email protected] -- npm publish --registry=https://registry.npmjs.org` so `prepublishOnly` can find the pinned pnpm version.
+- Do not reply to GitHub issues or close them as released until `npm view [email protected] version` returns the expected version.
+
## Build Commands (local only)
```bash