@nexcraft-dev/r2d1 0.1.0 → 1.0.0
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 +5 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -146,7 +146,11 @@ npm run check:package
|
|
|
146
146
|
|
|
147
147
|
Tests cover SQLite execution, failure paths, rebuilds, concurrency and local Miniflare/Workerd R2/D1 bindings. `verify:java` requires Java 21+ and the Java checkout at `../r2d1`, or set `R2D1_JAVA_ROOT`. It compiles original source copies in a temporary directory and checks source hashes, fixtures and bidirectional cursors. It never builds or modifies the Java checkout. Normal tests use checked-in fixtures without Java.
|
|
148
148
|
|
|
149
|
-
The `Publish npm package` workflow is manually dispatched from `main
|
|
149
|
+
The `Publish npm package` workflow is manually dispatched from `main`. The first formal release is `1.0.0`. Later runs increment the highest occupied stable version's patch component, checking both Git tags and the npm registry. The workflow updates both version files, validates Node 22 and 24, and atomically pushes a version commit and its `vX.Y.Z` tag. It uses the short-lived `GITHUB_TOKEN` for Git writes and OIDC for npm. No npm access token or PAT is configured.
|
|
150
|
+
|
|
151
|
+
The publish job keeps the workflow's `main` execution context for the `npm` Environment, while checking out the tag's exact commit SHA. It rechecks source ancestry, versions, tests and the tarball. An existing identical npm artifact is a successful no-op. A different artifact at the same version is an error. An unpublished tag is resumed without another version increment. Use the optional `resume_tag` input for explicit recovery of an existing tag. Re-running the same workflow run retains its release through the run ID recorded in the version commit.
|
|
152
|
+
|
|
153
|
+
The `npm` GitHub environment and package-level trusted publisher must be configured first. Repository rules must permit the workflow's short-lived token to update `main` and create release tags. The workflow never force-pushes, moves tags or creates GitHub releases. If Git reservation or npm publication fails, preserve existing tags and artifacts. Re-run all jobs to recover a reserved release, or use `resume_tag` from a new `main` dispatch. A new package may need separately authorized registration before package-level trust settings are available.
|
|
150
154
|
|
|
151
155
|
Live testing is opt-in and writes to dedicated resources. Set these variables:
|
|
152
156
|
|