mirror of
https://github.com/samuelthomas2774/nxapi.git
synced 2026-04-26 00:13:08 -05:00
Publish main to npm
This commit is contained in:
parent
9647d9a411
commit
84aa739f4b
|
|
@ -24,10 +24,11 @@ const tags = tags_str.split('\n').filter(t => t.startsWith('tag: ')).map(t => t.
|
||||||
const last_version = tags.find(t => t.startsWith('v'))?.substr(1) ?? null;
|
const last_version = tags.find(t => t.startsWith('v'))?.substr(1) ?? null;
|
||||||
const commit_count = parseInt(commit_count_str);
|
const commit_count = parseInt(commit_count_str);
|
||||||
|
|
||||||
if (!last_version || pkg.version !== last_version) {
|
if (last_version && pkg.version !== last_version) {
|
||||||
console.warn('Last tagged version does not match package.json version', {
|
console.warn('Last tagged version does not match package.json version', {
|
||||||
version: pkg.version,
|
version: pkg.version,
|
||||||
tag: last_version ? 'v' + last_version : null,
|
tag: last_version ? 'v' + last_version : null,
|
||||||
|
tags_str,
|
||||||
});
|
});
|
||||||
process.exit();
|
process.exit();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user