The reference parser lives in packages/parser and is published to
npm as semantic-versions. All commands
below use vlt and run from the repository root.
Publishing has to run from the root with --workspace packages/parser; the root
package.json is private, and vlt reads the workspace target from the flag.
Authenticate vlt against the npm registry. This stores a bearer token in vlt's keychain:
vlt login --registry=https://registry.npmjs.org/
# or, to paste an existing automation/granular token:
vlt token add --registry=https://registry.npmjs.org/Confirm you're the right user and have publish rights:
vlt whoami --registry=https://registry.npmjs.org/-
Update the version in
packages/parser/package.json(for example1.0.0). Keep theCHANGELOG/release notes in the GitHub Release. -
Verify the package contents and metadata without publishing:
vlt run publish:dry
Check the reported
name,version,access,registryandfileslist (it should containindex.js,lib/,README.mdandLICENSE, and nothing else). -
Publish (runs the test suite first, then publishes with public access):
vlt run release
Pre-release tags publish under a dist-tag instead of latest:
vlt publish --workspace packages/parser --access public --tag next.github/workflows/release.yml publishes on a published
GitHub Release (or a manual run from the Actions tab). It requires one repository secret:
NPM_TOKEN— an npm automation or granular access token with publish rights for thesemantic-versionspackage. The workflow seeds vlt's keychain from this token, runs the test suite, and then publishes.
To do a manual dry run through CI, trigger the workflow with the dry-run input checked.
Only the runtime files ship, per the files allowlist in packages/parser/package.json:
index.js, lib/, README.md and LICENSE. Tests, benchmarks and coverage output are
excluded.