From 9649bc800e2750e2fb8b750c6e722fe546163d46 Mon Sep 17 00:00:00 2001 From: marcomariscal <42938673+marcomariscal@users.noreply.github.com> Date: Mon, 20 Apr 2026 11:24:31 -0700 Subject: [PATCH] fix: publish prereleases to latest --- .github/workflows/publish.yml | 2 +- RELEASING.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 4904209..56ec817 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -68,4 +68,4 @@ jobs: run: npm pack --dry-run - name: Publish to npm - run: npm publish --provenance --access public + run: npm publish --provenance --access public --tag latest diff --git a/RELEASING.md b/RELEASING.md index 69d4ec9..5bb579c 100644 --- a/RELEASING.md +++ b/RELEASING.md @@ -20,7 +20,7 @@ - The publish job runs in the `npm-release` GitHub environment. - `package.json` must include a `repository.url` that exactly matches `https://github.com/ScopeLift/stealth-address-sdk`. - The npm package's trusted publisher settings must exactly match `ScopeLift/stealth-address-sdk`, workflow `publish.yml`, and environment `npm-release`. -- Release tags publish to npm with the default `latest` dist-tag. +- Release tags publish to npm with an explicit `latest` dist-tag, which npm requires for prerelease versions. - The publish job fails unless the tag version matches `package.json` and the tag points at the latest `main` commit. ## Commands