mirror of
https://github.com/samuelthomas2774/nxapi.git
synced 2026-03-21 18:04:10 -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 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', {
|
||||
version: pkg.version,
|
||||
tag: last_version ? 'v' + last_version : null,
|
||||
tags_str,
|
||||
});
|
||||
process.exit();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user