Skip to content

Releasing

Versions are managed manually in packages/semtest-runner/package.json:

{
"version": "0.1.0"
}

To release a new version:

  1. Update the version field in packages/semtest-runner/package.json
  2. Commit and push to main
  3. The publish.yml workflow builds, tests, and publishes automatically
TypeTriggerVersiondist-tagInstall command
StablePush to mainAs in package.json (e.g. 0.1.0)latestpnpm add @thulanek/semtest-runner
RCPush to releaseAuto-suffixed (e.g. 0.1.0-rc.5)rcpnpm add @thulanek/semtest-runner@rc

The package is published to GitHub Packages (not npm). The publishConfig in package.json controls this:

{
"publishConfig": {
"registry": "https://npm.pkg.github.com"
}
}

To install @thulanek/semtest-runner in another project, configure the @thulanek scope to resolve from GitHub Packages.

@thulanek:registry=https://npm.pkg.github.com
//npm.pkg.github.com/:_authToken=YOUR_PAT_HERE

Replace YOUR_PAT_HERE with a GitHub PAT that has read:packages scope.

Terminal window
pnpm add @thulanek/semtest-runner
import { defineConfig, loadConfig, executeTests } from "@thulanek/semtest-runner";

Or use the CLI directly:

Terminal window
npx semtest run
{
"repository": {
"type": "git",
"url": "https://github.com/thulanek/semtest-runner.git",
"directory": "packages/semtest-runner"
}
}

The directory field tells GitHub Packages that this package lives in a monorepo subdirectory.