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