-
Notifications
You must be signed in to change notification settings - Fork 346
Description
Describe the bug
supabase/setup-cli@v1 with version: latest installs CLI v2.67.1, but npm’s latest dist-tag points to v2.72.4. This makes “latest” resolve to an older version in CI. It might be expected if the action intentionally follows GitHub’s latest stable (non‑prerelease) release while npm’s latest dist‑tag can point to a prerelease, but that behavior isn’t obvious from the action’s usage. This mismatch likely started when develop began publishing to npm latest while GitHub releases remained marked as prerelease.
To Reproduce
- Create a GitHub Actions workflow that runs
supabase/setup-cli@v1withversion: latest. - Run
supabase --version. - Observe the CLI version is
2.67.1. - Compare with npm
latestdist-tag, which is2.72.4.
Expected behavior
Either version: latest should align with npm’s latest dist-tag, or the action/docs should clarify that it follows GitHub “latest stable release” (non‑prerelease).
Additional context
- Likely change that introduced drift: commit
08d3e3f044(“feat: deprecate beta channel on npm”, 2025‑11‑27). It updatespackage.jsonsodeveloppublishes to channellatest(wasbeta) and removes thepublishjob in.github/workflows/release.ymlthat calledtag-npm.ymlto move npmlateston stable releases. release-beta.ymlstill publishes npm withnpm publish --tag ${{ new-release-channel }}and marks the GitHub release as prerelease. That means npmlatestcan now point to prereleases while GitHub “latest release” stays on the last stable.- GitHub releases mark
2.72.4as prerelease; npmlatestpoints to2.72.4. - Observed on January 12, 2026 in CI (
ubuntu-latest).
Workflow snippet:
- uses: supabase/setup-cli@v1
with:
version: latest
- run: supabase --version