From 215e5f3896c200eae519a275b7f1d76cecaba7d5 Mon Sep 17 00:00:00 2001 From: rdlabo Date: Tue, 14 Jul 2026 17:58:46 +0900 Subject: [PATCH] feat(release): include kit in prebuild and publish prereleases as beta Build kit with the other libraries on tag release, align kit to the 21.x line, and use npm dist-tag beta for np-style X.Y.Z-N tags. Co-authored-by: Cursor --- .github/workflows/release.yml | 2 +- README.md | 7 +++++++ package.json | 3 ++- projects/kit/README.md | 4 ++++ projects/kit/package.json | 2 +- 5 files changed, 15 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d0347a9..e034fbb 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -89,7 +89,7 @@ jobs: if [ "$IS_STABLE" = "true" ]; then npm publish --provenance --access public else - npm publish --provenance --access public --tag next + npm publish --provenance --access public --tag beta fi cd ../.. done diff --git a/README.md b/README.md index 95a170f..7b877a7 100644 --- a/README.md +++ b/README.md @@ -27,6 +27,13 @@ Sponsoring means you directly contribute to new features, improvements, and main | @rdlabo/ionic-angular-scroll-header | This is directive for scroll with Header. | [/project/scroll-header](https://github.com/rdlabo-team/ionic-angular-library/tree/main/projects/scroll-header#readme) | | @rdlabo/ngx-cdk-scroll-strategies | This is directive for virtual scroll of dynamic item size. | [/project/scroll-strategies](https://github.com/rdlabo-team/ionic-angular-library/tree/main/projects/scroll-strategies#readme) | +### Release + +All libraries (including kit) share one version line and are released together via `npm run release` (`np --no-tests --no-publish`) → `v*` tag → GitHub Actions `release.yml`. + +- Stable `vX.Y.Z` → npm `latest` +- Prerelease `vX.Y.Z-N` (np style) → npm dist-tag **`beta`** (version string stays `X.Y.Z-N`) + ### Kit Auth demo The demo app includes a **Kit** tab with a Firebase Auth harness (`/main/kit/auth`). diff --git a/package.json b/package.json index b1bb473..58e7e3d 100644 --- a/package.json +++ b/package.json @@ -21,10 +21,11 @@ "test:headless": "CHROME_BIN=/usr/bin/google-chrome ng test --watch=false", "cap": "npm run build -- --configuration production && npx cap copy", "fmt": "prettier --parser typescript --write \"./**/*.ts\" && prettier --parser angular --write \"./**/*.html\"", + "prebuild:kit": "ng build kit --configuration=production", "prebuild:photo-editor": "ng build photo-editor --configuration=production", "prebuild:scroll-header": "sass projects/scroll-header/src/assets/scroll-header.directive.scss projects/scroll-header/css/scroll-header.directive.css && ng build scroll-header --configuration=production", "prebuild:scroll-strategies": "ng build scroll-strategies --configuration=production", - "prebuild": "npm run prebuild:photo-editor && npm run prebuild:scroll-header && npm run prebuild:scroll-strategies", + "prebuild": "npm run prebuild:kit && npm run prebuild:photo-editor && npm run prebuild:scroll-header && npm run prebuild:scroll-strategies", "prestart": "npm run prebuild", "release": "np --no-tests --no-publish", "lint": "ng lint", diff --git a/projects/kit/README.md b/projects/kit/README.md index 9b2f1b7..6fabe42 100644 --- a/projects/kit/README.md +++ b/projects/kit/README.md @@ -15,8 +15,12 @@ A small ergonomic kit for Ionic Angular applications. It provides: ```bash npm install @rdlabo/ionic-angular-kit +# prereleases (np: X.Y.Z-N) are on the npm dist-tag `beta`: +# npm install @rdlabo/ionic-angular-kit@beta ``` +Kit shares the repo `v*` release line with the other libraries (see root README § Release). + ### Peer dependencies | Package | Version | diff --git a/projects/kit/package.json b/projects/kit/package.json index 20a0dd7..0a1b745 100644 --- a/projects/kit/package.json +++ b/projects/kit/package.json @@ -1,6 +1,6 @@ { "name": "@rdlabo/ionic-angular-kit", - "version": "0.0.27", + "version": "21.1.1", "peerDependencies": { "@angular/common": "^21.0.0", "@angular/core": "^21.0.0",