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.
- package/README.md +20 -14
- 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
|
|
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
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
checks out the tag, reruns the CI gates, sets the
|
|
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).
|
|
284
|
-
dist-tag
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
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
|
|