diff --git a/packages/backend/git.json b/packages/backend/git.json new file mode 100644 index 0000000..1188509 --- /dev/null +++ b/packages/backend/git.json @@ -0,0 +1,4 @@ +{ + "tag": "1.0.0", + "commit": "test" +} \ No newline at end of file diff --git a/packages/backend/scripts/make-git.js b/packages/backend/scripts/make-git.js new file mode 100644 index 0000000..300f535 --- /dev/null +++ b/packages/backend/scripts/make-git.js @@ -0,0 +1,24 @@ +/* + * Copyright (C) 2025 Aleksander 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, + })) +})(); \ No newline at end of file