The package is published to the npm registry under the tigerpython organisation as
@tigerpython/tpparser. Releasing is automatic: bump
releaseVersion in build.sbt and merge that change to master.
That push triggers the publish-npm.yml GitHub Actions workflow, which:
- Checks whether the version in
build.sbtis already published to npm. If so, it stops here — this makes it safe for the workflow to run on every push tomaster, since only an actual version bump does anything. - Runs the test suite (
sbt test). - Builds the release artifacts (
sbt makeRelease), which regenerates the/releasefolder as well aspackage.jsonandpackage-lock.jsonfrom the templates inbuild.sbt. - Publishes to npm via trusted publishing (OIDC) — no npm token or secret involved.
- Creates a GitHub Release for the new version.
No manual npm publish or npm login is needed for a normal release.