build(): test new build sys, add script
Some checks reported errors
continuous-integration/drone/push Build encountered an error
Some checks reported errors
continuous-integration/drone/push Build encountered an error
This commit is contained in:
parent
b41a0a9127
commit
4b6f41a6c7
4
packages/backend/git.json
Normal file
4
packages/backend/git.json
Normal file
@ -0,0 +1,4 @@
|
||||
{
|
||||
"tag": "1.0.0",
|
||||
"commit": "test"
|
||||
}
|
24
packages/backend/scripts/make-git.js
Normal file
24
packages/backend/scripts/make-git.js
Normal file
@ -0,0 +1,24 @@
|
||||
/*
|
||||
* Copyright (C) 2025 Aleksander <alekswilc> Wilczyński (aleks@alekswilc.dev)
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Affero General Public License as published
|
||||
* by the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU Affero General Public License for more details.
|
||||
*
|
||||
* See LICENSE for more.
|
||||
*/
|
||||
|
||||
import fs from 'node:fs/promises';
|
||||
|
||||
(async () => {
|
||||
await fs.writeFile('git.json', JSON.stringify({
|
||||
tag: process.env.TAG,
|
||||
commit: process.env.COMMIT,
|
||||
}))
|
||||
})();
|
Loading…
x
Reference in New Issue
Block a user