mirror of
https://github.com/changesets/action
synced 2026-10-26 16:39:56 +08:00
Fixed an issue with treating single package repositories without changesets as versioned at all times (#41)
This commit is contained in:
Vendored
+1
-1
File diff suppressed because one or more lines are too long
+15
-6
@@ -119,12 +119,21 @@ export async function runPublish({
|
|||||||
"This is probably a bug in the action, please open an issue"
|
"This is probably a bug in the action, please open an issue"
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
const pkg = packages[0];
|
let pkg = packages[0];
|
||||||
releasedPackages.push(pkg);
|
let newTagRegex = /New tag:/;
|
||||||
await createRelease(octokit, {
|
|
||||||
pkg,
|
for (let line of changesetPublishOutput.stdout.split("\n")) {
|
||||||
tagName: `v${pkg.packageJson.version}`,
|
let match = line.match(newTagRegex);
|
||||||
});
|
|
||||||
|
if (match) {
|
||||||
|
releasedPackages.push(pkg);
|
||||||
|
await createRelease(octokit, {
|
||||||
|
pkg,
|
||||||
|
tagName: `v${pkg.packageJson.version}`,
|
||||||
|
});
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (releasedPackages.length) {
|
if (releasedPackages.length) {
|
||||||
|
|||||||
Reference in New Issue
Block a user