@opengsd/gsd-loop. To update your installed
skills, see troubleshooting.
Releases use npm Trusted Publishing from GitHub Actions. The workflow publishes
the package and creates a matching GitHub Release tagged vVERSION from the
package’s exact published commit. It uses a short-lived OIDC identity and does
not require an NPM_TOKEN secret.
Configure the GitHub environment
- Open Settings → Environments for the repository.
- Create an environment named
npm. - Under Deployment branches and tags, select Selected branches and tags.
- Add a deployment branch rule named
main.
Configure the trusted publisher
Open the settings for@opengsd/gsd-loop on npm, add a GitHub Actions trusted
publisher, and enter these values exactly:
The filename is case-sensitive and must be entered without the
.github/workflows/ path.
Publish a release
- Merge a green PR containing the version bump and release changes into
main. - Confirm CI is green on
main. - Open Actions → Publish release → Run workflow.
- Select
mainand run the workflow. - Confirm the workflow succeeded, the version appears on npm, and the matching
vVERSIONentry appears under GitHub Releases.
npm publish runs the
package’s prepublishOnly tests before uploading it, and npm automatically
generates provenance for this public package when trusted publishing succeeds.
Before publishing, the driver verifies that the selected commit is still the
tip of main and that the ci workflow succeeded for that exact commit. It is
retry-safe: registry and GitHub API failures stop the run, while a confirmed
missing destination is repaired without republishing an existing package. When
npm already has the version, its gitHead metadata identifies the exact commit
that the matching GitHub Release must target.