@caltho/site-kit 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +5 -5
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -75,8 +75,8 @@ To try a change in a site before releasing it: `bun pm pack`, then in the site
75
75
  `bun add file:/path/to/caltho-site-kit-<version>.tgz`.
76
76
 
77
77
  **Releasing**: raise `version` in package.json and merge to main. The Publish workflow sees a version
78
- that isn't on npm yet, checks and builds it, publishes it with npm's trusted publishing (no token is
79
- stored anywhere) and tags the commit. The package is public, so a site installs it with no token.
80
- First publish, once: from a laptop logged in to npm (`npm login`), `npm publish`; then on npmjs.com,
81
- the package's Settings › Trusted publisher › GitHub Actions: organization `trycaltho`, repository
82
- `site-kit`, workflow `publish.yml`.
78
+ that isn't on npm yet, checks and builds it, and **stages** it with npm's trusted publishing (no token is
79
+ stored anywhere). A person then approves it, which is the 2FA step: `npm stage list`, then
80
+ `npm stage approve <id>` (or approve on npmjs.com). Only then is it live, and a site's Dependabot picks it up.
81
+ Set on the package once: Settings › Trusted publisher › GitHub Actions: organization `trycaltho`,
82
+ repository `site-kit`, workflow `publish.yml`, permission "stage publish".
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@caltho/site-kit",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "What every Caltho site is built with: the contract with CalOS (content, and how a site declares what is editable), images, search and security, and the checks",
5
5
  "license": "MIT",
6
6
  "type": "module",