File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2424 - run : nix develop --command pnpm install --frozen-lockfile
2525 - run : nix develop --command pnpm build
2626 - run : nix develop --command pnpm test
27- - run : nix develop --command pnpm -r publish --no-git-checks --access public --provenance
27+ - run : |
28+ nix develop --command bash -c '
29+ for pkg in packages/runtime packages/generator packages/zod; do
30+ echo "Publishing $pkg..."
31+ (cd "$pkg" && npm publish --access public --provenance)
32+ done
33+ '
2834 env:
29- NPM_CONFIG_REGISTRY : https://registry.npmjs.org
35+ ACTIONS_ID_TOKEN_REQUEST_URL: ${{ env.ACTIONS_ID_TOKEN_REQUEST_URL }}
36+ ACTIONS_ID_TOKEN_REQUEST_TOKEN: ${{ env.ACTIONS_ID_TOKEN_REQUEST_TOKEN }}
Original file line number Diff line number Diff line change 1+ # Releasing
2+
3+ All packages are published together under the same version.
4+
5+ ## Steps
6+
7+ 1 . ** Update the version** in each package.json:
8+
9+ - ` packages/runtime/package.json `
10+ - ` packages/generator/package.json `
11+ - ` packages/zod/package.json `
12+
13+ Or use this command to update all at once:
14+
15+ ``` sh
16+ pnpm -r exec npm version < version> --no-git-tag-version
17+ ```
18+
19+ 2 . ** Commit the version bump:**
20+
21+ ``` sh
22+ git add -A && git commit -m " v<version>"
23+ ```
24+
25+ 3 . ** Tag and push:**
26+
27+ ``` sh
28+ git tag v< version>
29+ git push origin main v< version>
30+ ```
31+
32+ The ` publish.yml ` GitHub Actions workflow triggers on ` v* ` tags and publishes all packages to npm via Trusted Publishing.
33+
34+ ## Versioning
35+
36+ This project follows [ semver] ( https://semver.org/ ) . Pre-release versions use the format ` X.Y.Z-alpha.N ` (e.g., ` 0.1.0-alpha.0 ` ).
Original file line number Diff line number Diff line change 2323 {
2424 default = pkgs . mkShell {
2525 packages = [
26- pkgs . nodejs_22
26+ pkgs . nodejs_24
2727 pkgs . pnpm
2828 pkgs . typescript
2929 pkgs . prettier
3434 echo "kubernetes-client-typescript dev shell"
3535 echo "node: $(node --version)"
3636 echo "pnpm: $(pnpm --version)"
37+ echo "npm: $(npm --version)"
3738 '' ;
3839 } ;
3940 } ) ;
Original file line number Diff line number Diff line change 11{
22 "name" : " @kubernetes-typescript/generator" ,
3- "version" : " 0.0 .0" ,
3+ "version" : " 0.1.0-alpha .0" ,
44 "type" : " module" ,
55
66 "bin" : {
Original file line number Diff line number Diff line change 11{
22 "name" : " @kubernetes-typescript/runtime" ,
3- "version" : " 0.0 .0" ,
3+ "version" : " 0.1.0-alpha .0" ,
44 "type" : " module" ,
55
66 "exports" : {
Original file line number Diff line number Diff line change 11{
22 "name" : " @kubernetes-typescript/zod" ,
3- "version" : " 0.0 .0" ,
3+ "version" : " 0.1.0-alpha .0" ,
44 "type" : " module" ,
55
66 "exports" : {
You can’t perform that action at this time.
0 commit comments