Publish main to npm

This commit is contained in:
Samuel Elliott 2022-10-11 15:23:49 +01:00
parent 9647d9a411
commit 84aa739f4b
No known key found for this signature in database
GPG Key ID: 8420C7CDE43DC4D6

View File

@ -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();
}