We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6b1fd9d commit 21e62d8Copy full SHA for 21e62d8
src/publish.js
@@ -53,6 +53,11 @@ export async function publish(args) {
53
if (!args.accessToken?.length) {
54
logger.warn(`No access token provided. Publishing to registry ${args.registry} may fail.`);
55
}
56
+ // Remove slahes from the end of the tag (this may happen if the tag is provided by github ref_name
57
+ if (args.tag?.includes("/")) {
58
+ logger.warn(`Tag '${args.tag}' contains slashes: replacing with '-'`);
59
+ args.tag = args.tag.replace(/\/+$/, '-');
60
+ }
61
62
processPackageJson(packageDirectory, packageJson, { logger });
63
0 commit comments