This repository supports two release paths. Both publish from main, use npm trusted publishing through GitHub OIDC, and publish the root package as @prisma/studio-core.
Configure @prisma/studio-core in npm as a trusted publisher for the prisma/studio GitHub repository and the publish workflow. The workflow does not use NPM_TOKEN.
Use this path for normal releases.
- Add a changeset in your feature PR with
pnpm changeset. - Merge the feature PR into
main. - The
version packagesworkflow opens or updates a release PR withpackage.jsonandCHANGELOG.mdchanges. - Review and merge that release PR into
main. - The
publishworkflow publishes the new version to npm and creates or updates the GitHub release using the matchingCHANGELOG.mdsection.
Use this path when main already contains the version you want to publish and you want to publish it on demand.
- Update
package.jsononmainto the exact version you want to publish. - Update
CHANGELOG.mdonmainif you want GitHub release notes for that version. - Open
Repository > Actions > publish. - Run the workflow on
mainand enter the exact version.
The workflow checks that the requested version matches package.json on main and that npm does not already have that version. If CHANGELOG.md contains ## <version>, that section becomes the GitHub release notes. If it does not, the publish still succeeds and the GitHub release is created with empty notes.
pnpm changesetcreates a changeset file for the current work.pnpm version-packagesapplies pending changesets topackage.jsonandCHANGELOG.md.pnpm release:prepareshows the publish decision the workflow would make from the current checkout.pnpm check:exportspacks the package, validates the published export surface, and removes the temporary tarball.
- Publish from
mainonly. - Do not publish a version that is not already present in
package.jsononmain. - Prefer the Changesets release PR path for normal releases.
- Use the manual Actions path only when you need explicit operator control over when an already-versioned commit is published.