@@ -30,15 +30,42 @@ Configure all current packages:
3030- ` @joonix/opencode-commands `
3131
3232After one successful automated release, set each package's ** Publishing access** to ** Require
33- two-factor authentication and disallow tokens** , then revoke obsolete npm automation tokens. This
34- setting does not block Trusted Publishing because it uses short-lived OIDC credentials rather than
33+ two-factor authentication and disallow bypass 2FA tokens (recommended)** , then revoke obsolete npm
34+ automation tokens. Do not select ** Require two-factor authentication or a granular access token
35+ with bypass 2FA enabled** ; that option exists for legacy token-based CI. The recommended setting
36+ does not block Trusted Publishing because it uses short-lived OIDC credentials rather than
3537traditional tokens.
3638
3739A newly created npm package has no npm settings page yet. Publish its first version manually with
3840` make publish-<package> ` , then add its Trusted Publisher entry before releasing its next version by
3941tag. Trusted Publisher setup is per package, not per npm scope. This bootstrap release is the only
4042case that should require a traditional interactive npm login.
4143
44+ ### New package checklist
45+
46+ Repeat every item for each new package; npm does not inherit these settings from the ` @joonix `
47+ scope or another package.
48+
49+ - [ ] Add ` packages/<package>/package.json ` with:
50+ - the name ` @joonix/opencode-<package> ` ;
51+ - a stable ` major.minor.patch ` version;
52+ - ` publishConfig.access ` set to ` public ` ;
53+ - ` repository.url ` set to ` git+https://github.com/joonix/opencode-plugins.git ` ; and
54+ - ` repository.directory ` set to ` packages/<package> ` .
55+ - [ ] Add the package's tests and ` Makefile ` , including ` test ` and ` test-load ` targets.
56+ - [ ] Run ` bun install --force ` , ` make test ` , and ` make test-load ` , then merge the package to ` main ` .
57+ - [ ] Publish the initial version interactively with ` make publish-<package> ` . Do not create a
58+ release tag for this already-published version.
59+ - [ ] On that package's npm ** Settings** page, add the GitHub Actions Trusted Publisher using the
60+ exact values in the table above, including direct ` npm publish ` permission.
61+ - [ ] Add ` refs/tags/<package>-v* ` to the GitHub release-tag ruleset.
62+ - [ ] Publish the next real version through a GitHub release tag and verify that npm shows
63+ provenance for the expected commit and workflow.
64+ - [ ] Set npm ** Publishing access** to ** Require two-factor authentication and disallow bypass 2FA
65+ tokens (recommended)** .
66+ - [ ] Revoke any bootstrap or automation token that is no longer needed. Interactive account login
67+ remains available for emergency manual publishing and requires 2FA.
68+
4269### Protect release tags
4370
4471In the GitHub repository, open ** Settings → Rules → Rulesets** , create an active tag ruleset, and
0 commit comments