vnxt 1.7.0 ā 1.7.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/vnxt.js +6 -6
package/package.json
CHANGED
package/vnxt.js
CHANGED
|
@@ -9,7 +9,7 @@ const colors = {
|
|
|
9
9
|
reset: '\x1b[0m',
|
|
10
10
|
bright: '\x1b[1m',
|
|
11
11
|
dim: '\x1b[2m',
|
|
12
|
-
|
|
12
|
+
|
|
13
13
|
// Foreground colors
|
|
14
14
|
red: '\x1b[31m',
|
|
15
15
|
green: '\x1b[32m',
|
|
@@ -336,7 +336,7 @@ async function main() {
|
|
|
336
336
|
// Create annotated tag
|
|
337
337
|
log('š·ļø Adding tag annotation...', 'cyan');
|
|
338
338
|
const tagMessage = `Version ${newVersion}\n\n${message}`;
|
|
339
|
-
execSync(`git tag -a
|
|
339
|
+
execSync(`git tag -a ${config.tagPrefix}${newVersion} -m "${tagMessage}"`, {stdio: 'pipe'});
|
|
340
340
|
|
|
341
341
|
// GENERATE CHANGELOG
|
|
342
342
|
if (generateChangelog) {
|
|
@@ -364,7 +364,7 @@ async function main() {
|
|
|
364
364
|
// GENERATE RELEASE NOTES
|
|
365
365
|
if (generateReleaseNotes) {
|
|
366
366
|
log('š Generating release notes...', 'cyan');
|
|
367
|
-
const releaseNotes = `# Release
|
|
367
|
+
const releaseNotes = `# Release ${config.tagPrefix}${newVersion}
|
|
368
368
|
|
|
369
369
|
Released: ${new Date().toISOString().split('T')[0]}
|
|
370
370
|
|
|
@@ -380,7 +380,7 @@ npm install ${packageJson.name}@${newVersion}
|
|
|
380
380
|
See [CHANGELOG.md](./CHANGELOG.md) for complete version history.
|
|
381
381
|
`;
|
|
382
382
|
|
|
383
|
-
const filename = `release-notes
|
|
383
|
+
const filename = `release-notes-${config.tagPrefix}${newVersion}.md`;
|
|
384
384
|
fs.writeFileSync(filename, releaseNotes);
|
|
385
385
|
log(` Created: ${filename}`);
|
|
386
386
|
}
|
|
@@ -397,7 +397,7 @@ See [CHANGELOG.md](./CHANGELOG.md) for complete version history.
|
|
|
397
397
|
|
|
398
398
|
log(`\nš¦ Version: ${oldVersion} ā ${newVersion}`, 'green');
|
|
399
399
|
log(`š¬ Message: ${message}`);
|
|
400
|
-
log(`š·ļø Tag:
|
|
400
|
+
log(`š·ļø Tag: ${config.tagPrefix}${newVersion}`);
|
|
401
401
|
log(`šæ Branch: ${branch}`);
|
|
402
402
|
|
|
403
403
|
if (generateChangelog) {
|
|
@@ -494,4 +494,4 @@ Examples:
|
|
|
494
494
|
}
|
|
495
495
|
|
|
496
496
|
// Run main function
|
|
497
|
-
main();
|
|
497
|
+
main();
|