Added smart versioning
This commit is contained in:
parent
1d94143b21
commit
540658e3d0
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "immersive",
|
"name": "immersive",
|
||||||
"private": true,
|
"private": true,
|
||||||
"version": "0.0.8-8",
|
"version": "0.0.8-11",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=18.0.0"
|
"node": ">=18.0.0"
|
||||||
|
|||||||
@ -22,7 +22,8 @@ const getPackageJson = async () => {
|
|||||||
console.log(indexHtml);
|
console.log(indexHtml);
|
||||||
indexHtml = indexHtml.replace('@@VERSION', newVersion);
|
indexHtml = indexHtml.replace('@@VERSION', newVersion);
|
||||||
indexHtml = indexHtml.replace('@@DATE', new Date().toISOString());
|
indexHtml = indexHtml.replace('@@DATE', new Date().toISOString());
|
||||||
const gitId = await getGitId();
|
const gitId = (await getGitId()).replace('\n', '');
|
||||||
|
|
||||||
indexHtml = indexHtml.replace('@@GIT', gitId);
|
indexHtml = indexHtml.replace('@@GIT', gitId);
|
||||||
await fs.writeFile('index.html', indexHtml);
|
await fs.writeFile('index.html', indexHtml);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user