2
0
mirror of https://github.com/tenrok/BBob.git synced 2026-05-15 11:59:37 +03:00

fix(.github): publish workflow

This commit is contained in:
Nikolay Kostyurin
2025-03-09 16:07:06 +02:00
parent 8f541e8fca
commit 66c0931f5c
4 changed files with 20 additions and 345 deletions
+11 -6
View File
@@ -1,8 +1,13 @@
const config = require('./release.json');
const {unlink} = require('fs')
const { unlink, readFileSync } = require('fs');
const commit_message = `v${config.releases[0].newVersion}`
try {
const config = JSON.parse(readFileSync('./release.json'));
const commitMessage = `v${config.releases[0].newVersion}`;
// eslint-disable-next-line no-console
console.log(commitMessage);
} catch (e) {
// eslint-disable-next-line no-console
console.log(e);
}
unlink('./release.json', () => {})
console.log(commit_message)
unlink('./release.json', () => {});