[cd] Use SemVer prerelease type for NPM dist-tag#94622
Conversation
...or, if it's not a prerelase, use `latest` if it's the highest version or `backport` otherwise
Stats from current PR✅ No significant changes detected📊 All Metrics📖 Metrics GlossaryDev Server Metrics:
Build Metrics:
Change Thresholds:
⚡ Dev Server
📦 Dev Server (Webpack) (Legacy)📦 Dev Server (Webpack)
⚡ Production Builds
📦 Production Builds (Webpack) (Legacy)📦 Production Builds (Webpack)
📦 Bundle SizesBundle Sizes⚡ TurbopackClient Main Bundles
Server Middleware
Build DetailsBuild Manifests
📦 WebpackClient Main Bundles
Polyfills
Pages
Server Edge SSR
Middleware
Build DetailsBuild Manifests
Build Cache
🔄 Shared (bundler-independent)Runtimes
📎 Tarball URLCommit: f740d40 |
Failing test suitesCommit: f740d40 | About building and testing Next.js
Expand output● create-next-app with package manager yarn › should use yarn for --use-yarn flag with example ● create-next-app with package manager yarn › should use yarn when user-agent is yarn with example
Expand output● app dir - metadata static routes cache › should generate different content after replace the static metadata file
Expand output● create-next-app with package manager yarn › should use yarn for --use-yarn flag with example ● create-next-app with package manager yarn › should use yarn when user-agent is yarn with example |
…ints at a prerelease
...or, if it's not a prerelase, use
latestif it's the highest version orbackportotherwiseRemoves one more place where the tags are hardcoded. We always mirrored SemVer prerelease types and NPM dist tags (except how stable releases are handled). We can just use the SemVer prerelease as the source of truth to avoid future mistakes.
Now we also undraft any prerelease not just canary (felt like an oversight from previous changes).
Also includes [cd] Allow tagging semver-lower releases as
@latestif@latestpoints at a prereleasetest plan
with different versions in
lerna.json