1
0
Fork 0
forked from Kispi/Core
HGOE-SaS/webapp/scripts/generate-version.js
Simon Giesel c70dba5ab3
All checks were successful
continuous-integration/drone/push Build is passing
feat(core): add employer portal
2023-07-09 21:27:45 +02:00

7 lines
No EOL
253 B
JavaScript

const fs = require('fs');
const gitCommitInfo = require('git-commit-info');
const packageJson = require('../package.json');
const version = `${packageJson.version}+${gitCommitInfo().shortHash}`;
fs.writeFileSync('.env', `VITE_APP_VERSION=${version}`);