Product
Introducing SSO
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
@jessitron/git-branch-to-npm-tag
Advanced tools
Readme
translate a valid git branch into a valid npm tag
We have libraries, and we make branches on them, and then we want to use them to test downstream programs. Publishing to npm makes these branch-versions accessible to downstream installation.
By default, npm publish
will also update the latest
tag, which changes the default version people get when they install your library. I don't want them to get a branch-version! I want them to get the most recent versioned release.
So, for these branch versions, we'll do npm publish --tag ${branchName}
... except that not all valid git branch names are valid NPM tags. In particular, forward-slash is common in git branch names (I name my branches jessitron/whatever so people know they're mine). npm tags do not want a forward slash.
This also prefixes the branch name with "branch:" so that they'll group together.
I recommend deleting the branch tags when you delete the branch. npm dist-tag rm <package> <tag>
FAQs
Convert a git branch name to a valid npm tag
The npm package @jessitron/git-branch-to-npm-tag receives a total of 4 weekly downloads. As such, @jessitron/git-branch-to-npm-tag popularity was classified as not popular.
We found that @jessitron/git-branch-to-npm-tag demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.