reading-stone 0.2.1 → 0.2.2

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 +20 -14
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -263,7 +263,8 @@ When input is malformed, Reading Stone emits a one-line diagnostic to
263
263
 
264
264
  ## Releasing
265
265
 
266
- Releases are tagged and staged by CI and published by a maintainer.
266
+ Releases are tagged, staged, and given a GitHub release by CI, and
267
+ published to npm by a maintainer.
267
268
  Release tags are created by the `release` workflow and can't be deleted
268
269
  or moved afterward (the `release-tag-protection` ruleset). Nothing
269
270
  reaches npm without a human 2FA approval.
@@ -273,20 +274,25 @@ the placeholder `0.0.0-development`; nothing is bumped by hand.
273
274
 
274
275
  1. Run the `release` workflow from `main` with the new tag (Actions →
275
276
  release → Run workflow, or
276
- `gh workflow run release.yml -f tag=vX.Y.Z`). It runs the shared
277
- release preflight (semver, uniqueness, ordering, CI status,
278
- unreleased commits) and creates the annotated tag.
279
- 2. Approve the `npm` environment deployment on the run. The stage job
280
- checks out the tag, reruns the CI gates, sets the package version
281
- to `X.Y.Z` (not committed), and runs
277
+ `gh workflow run release.yml -f tag=vX.Y.Z`). It calls the shared
278
+ npm pipeline in [`jflowers/ship`](https://github.com/jflowers/ship),
279
+ which runs the release preflight (semver, uniqueness, ordering, CI
280
+ status, unreleased commits) and creates the annotated tag. The
281
+ stage job then checks out the tag, reruns the CI gates, sets the
282
+ package version to `X.Y.Z` (not committed), and runs
282
283
  `npm stage publish --provenance` through npm trusted publishing
283
- (OIDC, no tokens). Prerelease versions stage under the `next`
284
- dist-tag.
285
- 3. Approve the staged version on npmjs.com (Staged Packages) or with
286
- `npm stage approve <stage-id>`. Both require 2FA. The version goes
287
- public at this step.
288
- 4. Create the GitHub release for the tag
289
- (`gh release create vX.Y.Z --verify-tag --generate-notes`).
284
+ (OIDC, no tokens). Last, it creates the GitHub release with
285
+ generated notes. Prerelease tags stage under the `next` dist-tag
286
+ and get a GitHub prerelease.
287
+ 2. Approve the staged version on npmjs.com (Staged Packages) or with
288
+ `npm stage approve <stage-id>` (npm 11.15.0 or newer, e.g.
289
+ `npx -y npm@11.21.2 stage approve <stage-id>`). Both require 2FA.
290
+ The version goes public at this step; it is the only approval.
291
+
292
+ Re-running the workflow is safe: a version already on npm is not
293
+ restaged, and an existing GitHub release is left unchanged. If you
294
+ reject a staged version (`npm stage reject <stage-id>`), delete its
295
+ GitHub release by hand (`gh release delete vX.Y.Z`); the tag stays.
290
296
 
291
297
  ## License
292
298
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "reading-stone",
3
- "version": "0.2.1",
3
+ "version": "0.2.2",
4
4
  "description": "TypeScript side-effect analyzer backend for Gaze",
5
5
  "keywords": [
6
6
  "gaze",