From 6936b1669e5dbd875f3e3c9609ed58860bcbb700 Mon Sep 17 00:00:00 2001 From: monarcode Date: Sat, 3 Oct 2026 16:39:18 +0100 Subject: [PATCH] chore: publish alpha releases to latest --- .github/workflows/release.yml | 2 +- RELEASING.md | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 7e494b0..4e0f5d6 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -87,7 +87,7 @@ jobs: - name: Publish alpha to npm env: RELEASE_VERSION: ${{ inputs.version }} - run: npm publish "$RUNNER_TEMP/release/monarcode-session-kit-$RELEASE_VERSION.tgz" --tag next --access public --ignore-scripts + run: npm publish "$RUNNER_TEMP/release/monarcode-session-kit-$RELEASE_VERSION.tgz" --tag latest --access public --ignore-scripts - name: Create GitHub prerelease and tag env: GH_TOKEN: ${{ github.token }} diff --git a/RELEASING.md b/RELEASING.md index ad74c6c..15d5274 100644 --- a/RELEASING.md +++ b/RELEASING.md @@ -2,7 +2,7 @@ The `Release alpha` workflow is manually triggered. It releases an alpha version already committed to `main`; it does not change versions or commit files. -It checks and packs with pnpm, publishes the verified tarball to npm using `next`, +It checks and packs with pnpm, publishes the verified tarball to npm using `latest`, then creates a Git tag and GitHub prerelease at the workflow's commit. ## One-time npm setup @@ -32,7 +32,7 @@ For this public repository/package, trusted publishing also generates provenance 2. Run `pnpm run check`, then commit and push those changes to `main`. 3. Open GitHub Actions → **Release alpha** → **Run workflow**. Choose `main` and enter the exact package version, without a `v` prefix. -4. Verify the run succeeds, npm exposes the version through `next`, and the +4. Verify the run succeeds, npm exposes the version through `latest`, and the matching GitHub prerelease exists. The workflow rejects a different branch, invalid or mismatched versions, missing