2.3 KiB
Publishing @maks-it.com/webui to npm
The library is published under the @maks-it.com scope to registry.npmjs.org, managed from the maks-it.com npm org.
Published package:
| Package | npm |
|---|---|
@maks-it.com/webui |
https://www.npmjs.com/package/@maks-it.com/webui |
Note:
@maks-it.com/webui-contracts,@maks-it.com/webui-core, and@maks-it.com/webui-componentswere merged into@maks-it.com/webuistarting at 0.4.0. Migrate host apps to the single package.
One-time npm setup
- Sign in at https://www.npmjs.com/ with the maks-it.com org account.
- Confirm the
@maks-it.comscope exists under Packages. - Create an Automation token (recommended) or Granular Access token with Publish on
@maks-it.com/*: - Store the token for release tooling:
- CI / release engine: set environment variable
Npm(logical secret name inscriptSettings.json). - Local one-off publish:
npm loginor a user-level~/.npmrcentry://registry.npmjs.org/:_authToken=YOUR_TOKEN
- CI / release engine: set environment variable
Scoped packages must use --access public (already configured in package publishConfig).
Manual publish
From the repo root:
cd src
npm ci
npm run build
npm publish -w @maks-it.com/webui --access public
Verify:
npm view @maks-it.com/webui version
Release pipeline (recommended)
Use utils\Invoke-ReleasePackage-Single.bat (or pwsh utils\engines\release\Invoke-ReleasePackage.ps1):
- Bump version in
src/package.json(or tag drivesNpmReleaseVersion). - Tag
HEADwith exact semver, e.g.git tag v0.4.0 && git push origin v0.4.0. - Set
$env:Npmand run the release engine.
utils\engines\release\scriptSettings.json runs NpmReleaseVersion, NpmBuild, ReleasePublishGuard, optional GitHub, then NpmPublish.
After publish — Certs UI / Vault
In each WebUI app (MaksIT.WebUI/package.json):
"@maks-it.com/webui": "^0.4.0"
Then refresh the lockfile:
cd src/MaksIT.WebUI
npm install
Docker builds use npm ci from the lockfile; no sibling maksit-webui clone is required in the image context.