Skip to content

Commit 70b4096

Browse files
v0.1.0-alpha.0
1 parent 83cb821 commit 70b4096

6 files changed

Lines changed: 50 additions & 6 deletions

File tree

.github/workflows/publish.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,13 @@ jobs:
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 }}

RELEASE.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
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`).

flake.nix

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
{
2424
default = pkgs.mkShell {
2525
packages = [
26-
pkgs.nodejs_22
26+
pkgs.nodejs_24
2727
pkgs.pnpm
2828
pkgs.typescript
2929
pkgs.prettier
@@ -34,6 +34,7 @@
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
});

packages/generator/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@kubernetes-typescript/generator",
3-
"version": "0.0.0",
3+
"version": "0.1.0-alpha.0",
44
"type": "module",
55

66
"bin": {

packages/runtime/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@kubernetes-typescript/runtime",
3-
"version": "0.0.0",
3+
"version": "0.1.0-alpha.0",
44
"type": "module",
55

66
"exports": {

packages/zod/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@kubernetes-typescript/zod",
3-
"version": "0.0.0",
3+
"version": "0.1.0-alpha.0",
44
"type": "module",
55

66
"exports": {

0 commit comments

Comments
 (0)