-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for npm tags #4
Comments
Do you maybe want to create a PR for this? 🙏 |
Hi guys, has anyone been working on this? I'm also interested in releasing with Examples:
The RegExp to get the tag name could simply extract a-z characters from the version string ( |
If we go for the RegExp approach, in case the const version = "1.2.3-alpha.0";
const tagName = version.match(/([a-zA-Z]+)/);
if (tagName) {
// need to publish with `--tag ${tagName[1]}`
} else {
// no need to use --tag
} |
I am thinking -- could we let the user provide a regex, for example |
It would be nice if this action could support tagged releases. You could key off of the commit message for package.json. For example, "TaggedRelease beta" or "TaggedRelease next 1.2.3-rc2". With these commit messages, the action would use the --tag option with the second token in the message. For example:
The text was updated successfully, but these errors were encountered: