Skip to content

Comments

chore(release): stop overwriting npm latest dist-tag#1977

Merged
nkaradzhov merged 1 commit intoredis:v4from
nkaradzhov:v4
Aug 4, 2025
Merged

chore(release): stop overwriting npm latest dist-tag#1977
nkaradzhov merged 1 commit intoredis:v4from
nkaradzhov:v4

Conversation

@nkaradzhov
Copy link

@nkaradzhov nkaradzhov commented Apr 15, 2025

Assigns the v4 branch its own dist-tag (v4) and restricts it to the 4.x version range. This prevents v4 maintenance releases from overwriting the latest major version in the default npm channel.

#1974

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR fixes the npm release process by ensuring the v4 branch is assigned its own dist-tag and its releases are restricted to the 4.x version range, preventing them from overwriting the npm latest tag.

  • Removed the explicit branch filter from the semantic-release command
  • Updates the release workflow to potentially rely on a separate branch configuration for v4
Files not reviewed (1)
  • .releaserc.json: Language not supported
Comments suppressed due to low confidence (1)

.github/workflows/release.yml:31

  • The removal of the '--branches v4' flag may cause v4 maintenance releases to be merged with the default release channel. Consider verifying that the semantic-release configuration properly restricts the v4 branch to the 4.x version range, for instance via a configuration file.
run: npx semantic-release

Assigns the v4 branch its own dist-tag (`v4`) and
restricts it to the 4.x version range. This prevents
v4 maintenance releases from overwriting the latest
major version in the default npm channel.
@nkaradzhov nkaradzhov changed the title fix(release): stop overwriting npm latest dist-tag chore(release): stop overwriting npm latest dist-tag Apr 16, 2025
@htemelski-oss
Copy link
Contributor

@nkaradzhov should we merge this PR?

@nkaradzhov nkaradzhov merged commit 0d5e1f1 into redis:v4 Aug 4, 2025
6 checks passed
@github-actions
Copy link

🎉 This PR is included in version 4.30.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants