UI Kit package for Vue 3 applications.
yarn install
yarn test
yarn buildimport { defineAsyncComponent } from "vue";
import "@upstars-global/unity-ui/themes/alpa";
const UiComponent = defineAsyncComponent(() => import("@upstars-global/unity-ui/components/<ComponentName>"));<ComponentName> публикуется из src/components/<ComponentName>/index.ts.
- Merge changes to
mainwith Conventional Commits (feat:,fix:,chore:...). - Workflow
.github/workflows/release.ymlrunssemantic-releaseand automatically:- calculates next semver version,
- updates
CHANGELOG.mdandpackage.json, - publishes package to GitHub Packages (
upstars-global).
- In consumer (
front-ss) update dependency, for example:
yarn workspace @front/ss add @upstars-global/unity-ui@^X.Y.Z@upstars-global:registry=https://npm.pkg.github.comCreate GitHub PAT (classic) with:
read:packagesrepo(if package/repository is private)
If org SSO is enabled, authorize token for upstars-global.
Add token to user ~/.npmrc (do not commit):
//npm.pkg.github.com/:_authToken=ghp_xxxxxxxxxxxxxxxxxxxx
always-auth=trueCheck auth:
npm whoami --registry=https://npm.pkg.github.com --userconfig ~/.npmrcInstall:
yarn add @upstars-global/unity-uiIn Settings -> CI/CD -> Variables, add:
GITHUB_PACKAGES_TOKEN(masked/protected)
Before yarn install in CI:
printf "//npm.pkg.github.com/:_authToken=%s\nalways-auth=true\n" "$GITHUB_PACKAGES_TOKEN" > ~/.npmrc
yarn install --frozen-lockfile
rm -f ~/.npmrcIf build runs inside Docker/kaniko, pass token as build-arg and create temporary ~/.npmrc in Dockerfile before yarn install.