build: fixes release build

Switch to semantic release didnt commit compiled output
This commit is contained in:
Simone Corsi 2022-05-11 09:30:15 +02:00
parent f70a021b83
commit 55cd9e9c58
No known key found for this signature in database
GPG Key ID: 0F5535005610947A
3 changed files with 13955 additions and 21363 deletions

View File

@ -10,7 +10,12 @@
[
"@semantic-release/git",
{
"assets": ["CHANGELOG.md", "package.json", "package-lock.json"]
"assets": [
"index.js",
"CHANGELOG.md",
"package.json",
"package-lock.json"
]
}
],
"@semantic-release/github",

35308
index.js

File diff suppressed because one or more lines are too long

View File

@ -20,8 +20,7 @@ export async function main() {
console.log(`check if customTemplatePath: ${customTemplatePath} exists`);
try {
const dir = await readdir('./');
console.log(dir.join('\n'));
template = await readFile('TEMPLATE.ejs', 'utf8');
template = await readFile(customTemplatePath, 'utf8');
} catch {
console.log("Couldn't find template file, using default");
}