You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .changeset/README.md
+7-5Lines changed: 7 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -22,13 +22,15 @@ corepack pnpm changeset
22
22
23
23
Pick the affected packages, the bump type (patch / minor / major), and write a one-line summary. A markdown file appears in this directory and gets committed with your PR.
24
24
25
-
## Alpha prerelease mode
25
+
## Alpha versions, preview channel
26
26
27
-
The repo is currently in changesets **prerelease mode** with the `alpha` tag (see `.changeset/pre.json`). While in this mode:
27
+
The repo is currently in changesets **prerelease mode** with the `alpha` tag
28
+
(see `.changeset/pre.json`). The `alpha` tag controls the version suffix; the
29
+
public npm channel for community testing is `preview`. While in this mode:
28
30
29
31
-`changeset version` cuts versions like `0.1.0-alpha.0`, `0.1.0-alpha.1`, …
30
-
-`changeset publish` publishes them under the **`alpha`** npm dist-tag, **not**`latest`. So `npm install @zitadel/cli` keeps resolving the last stable release; consumers opt into prereleases with `@zitadel/cli@alpha`.
31
-
-A package that has never had a stable release is published to `latest` on its first publish (changesets behaviour), then to `alpha` thereafter until it has a stable release.
32
+
-`changeset publish --tag preview` publishes them under the **`preview`** npm dist-tag, **not**`latest`. So `npm install @zitadel/cli` keeps resolving the last stable release; consumers opt into preview bundles with `@zitadel/cli@preview`.
33
+
-The public packages are configured as a fixed MVP preview group, so the Version Packages PR keeps their versions aligned.
32
34
33
35
To leave alpha and cut a stable `latest` release:
34
36
@@ -39,7 +41,7 @@ corepack pnpm changeset version # strips the -alpha suffix
39
41
40
42
## Publishing (npm trusted publishing / OIDC)
41
43
42
-
The [`.github/workflows/release-npm.yml`](../.github/workflows/release-npm.yml) workflow runs the [changesets GitHub Action](https://github.com/changesets/action). Pushing changesets to `main` opens a "Version Packages" PR aggregating all pending changesets; merging that PR bumps versions, updates `CHANGELOG.md` files, and publishes to npm (under the `alpha` dist-tag while in prerelease mode).
44
+
The [`.github/workflows/release-npm.yml`](../.github/workflows/release-npm.yml) workflow runs the [changesets GitHub Action](https://github.com/changesets/action). Pushing changesets to `main` opens a "Version Packages" PR aggregating all pending changesets; merging that PR bumps versions, updates `CHANGELOG.md` files, and publishes to npm (under the `preview` dist-tag while in prerelease mode). Package-level GitHub Releases are disabled; GoReleaser owns the product-level `ZITADEL Preview` releases.
43
45
44
46
Publishing authenticates with **npm trusted publishing (OIDC)** — there is **no `NPM_TOKEN`** secret. Before the first automated publish, a maintainer must, once per public package:
TARBALL="$(find goreleaser-dist -name 'nextgen_*_linux_amd64.tar.gz' | head -1)"
204
+
TARBALL="$(find goreleaser-dist -name 'zitadel-preview_*_linux_amd64.tar.gz' | head -1)"
205
205
test -n "$TARBALL"
206
206
tar -xzf "$TARBALL" -C .
207
207
test -x ./nextgen
@@ -541,14 +541,14 @@ jobs:
541
541
542
542
- name: Dry-run npm packs
543
543
run: |
544
-
for dir in apps/cli packages/api packages/components packages/sdk-core packages/sdk-next packages/sdk-nuxt; do
544
+
for dir in apps/cli packages/api packages/components packages/sdk-core packages/sdk-next packages/sdk-nuxt packages/sdk-react packages/sdk-vue packages/sdk-angular; do
545
545
corepack pnpm --dir "$dir" pack --dry-run
546
546
done
547
547
548
548
- name: Create npm package artifacts
549
549
run: |
550
550
mkdir -p "$RUNNER_TEMP/zitadel-npm-packages"
551
-
for dir in apps/cli packages/api packages/components packages/sdk-core packages/sdk-next packages/sdk-nuxt; do
551
+
for dir in apps/cli packages/api packages/components packages/sdk-core packages/sdk-next packages/sdk-nuxt packages/sdk-react packages/sdk-vue packages/sdk-angular; do
0 commit comments