hyperformula-ui is released on its own, by hand, with the steps below. script/release/release.sh releases the engine only.
Releasing is maintainer-owned. Do not run any of these steps as part of another task.
Which sections to follow:
| Release | Follow |
|---|---|
The first one, 0.3.5, which creates the package on npm |
Before every release, then The first release |
| Every later one | Before every release, then Release steps |
- The package versions on its own
0.xline, where any minor release may break. It joins the engine's version later; seedev-docs/STRUCTURE.md. - The first published version is
0.3.5. - A stable version (
0.3.5,0.3.6,0.4.0) is published under thelatestdist-tag, which is whatnpm install hyperformula-uiinstalls. - A prerelease (
0.4.0-next.0,0.4.0-next.1) is published under thenextdist-tag, neverlatest. Before the stable version it leads to, decide which of its prereleases to deprecate withnpm deprecate. - Tags carry the package name as a prefix,
hyperformula-ui@0.3.5, so they never collide with the engine's bare3.5.0. - Every release adds a section to
CHANGELOG.md. - The package is unscoped,
hyperformula-ui, and thehandsoncodenpm organization maintains it, as it doeshyperformula.
Run every command from the repository root with --workspace=hyperformula-ui/packages/core. A bare --workspace=hyperformula-ui also matches workspaces by folder and would act on more than this package.
On your own machine, with Node.js 22 and a clone of this repository:
-
Log in to npm with an account that is a member of the
handsoncodeorganization, and check which account is active:npm login npm whoami
-
Check that the account may publish the package. For the first release,
npm org ls handsoncode <username>must showadminorowner, because only they can give the organization access to a new package. For a later release, the account must appear in:npm access list collaborators hyperformula-ui
If your account has two-factor authentication for publishing, npm publish and npm access grant ask for a one-time password. Pass it as --otp=<code> when they fail without it.
Do this once, when hyperformula-ui does not exist on npm yet. It publishes 0.3.5 under latest and gives the organization access.
-
Check that the name is still free:
npm view hyperformula-ui
It must fail with
E404. If it prints a package, someone else owns the name: stop and do not publish. -
Run every one of the Release steps below, with
VERSION=0.3.5andTAG=latest. Step 8 creates the package, owned by your npm account alone. -
Find the
handsoncodeteam that maintainshyperformula:npm team ls handsoncode npm access list packages handsoncode:<team>
Pick the team whose list includes
hyperformulawithread-write. -
Give that team write access to the new package:
npm access grant read-write handsoncode:<team> hyperformula-ui
A permission error means your account is not an
adminorownerofhandsoncode; ask one to run this command. -
Check the result:
npm access list packages handsoncode:<team> npm view hyperformula-ui dist-tags
The first must list
hyperformula-uiwithread-write. The second must showlatest: 0.3.5.
Later releases skip this section and follow the Release steps only.
For every release, the first one included.
-
Set the version and the dist-tag for this release in your shell. The commands below read them:
VERSION=0.3.5 # the next version; npm view hyperformula-ui versions lists the published ones TAG=latest # latest for a stable version, next for a prerelease such as 0.4.0-next.0
-
Start from an up-to-date
developwith a clean install:git checkout develop git pull npm ci
-
Build and check everything:
npm run build:ui git diff --exit-code -- 'hyperformula-ui/**/cssText.ts' npm run lint npm run bundle-all npm run typecheck npm run test:ui npm run test:e2ebundle-allbuilds the engine, which the demo and the end-to-end suite resolve from this workspace. Stop if anything fails. -
Set the version, without a tag yet:
npm version "$VERSION" --workspace=hyperformula-ui/packages/core --no-git-tag-version -
In
hyperformula-ui/CHANGELOG.md, rename## [Unreleased]to## [<version>] - YYYY-MM-DD, with today's date, and add a new empty## [Unreleased]above it. -
Commit and tag:
git add hyperformula-ui/packages/core/package.json hyperformula-ui/CHANGELOG.md package-lock.json git commit -m "Release hyperformula-ui $VERSION" git tag "hyperformula-ui@$VERSION"
-
Check the tarball:
npm pack --dry-run --workspace=hyperformula-ui/packages/core npm run check:types --workspace=hyperformula-ui/packages/core
The pack lists
LICENSE.txt,README.md,DOCS.md,package.json,dist/andsrc/, and nothing from the shared configuration, the demo or the end-to-end suite.dist/index.jsanddist/index.d.tsmust be there. The type check must show no problem fornode16 (from ESM)orbundler. -
Publish:
npm publish --workspace=hyperformula-ui/packages/core --tag "$TAG" --access publicA published version can never be published again, even after
npm unpublish. Check step 7 before running this. -
Check the registry, and push:
npm view hyperformula-ui dist-tags git push origin develop git push origin "hyperformula-ui@$VERSION"$TAGmust point at$VERSION. If branch protection rejects the push todevelop, push the commit on a branch, open a pull request, and merge it with a merge commit so the tagged commit lands unchanged.
On the first release, go back to step 3 of The first release.