FIx release process

This commit is contained in:
Johannes Loher 2021-02-21 05:53:00 +01:00
parent dd2f3f7bbe
commit 378acac717
2 changed files with 1 additions and 4 deletions

View file

@ -58,7 +58,7 @@ build:
cache:
<<: *global_cache
script: |
yarn updateManifest -- --update=${RELEASE_TYPE}
yarn updateManifest --update=${RELEASE_TYPE}
RELEASE_VERSION=$(jq -r '.version' < package.json)
git add package.json package-lock.json src/system.json
git --no-pager diff

View file

@ -267,7 +267,6 @@ async function linkUserData() {
*/
function updateManifest(cb) {
const packageJson = fs.readJSONSync("package.json");
const packageLockJson = fs.readJSONSync("package-lock.json");
const manifest = getManifest();
if (!manifest) cb(Error(chalk.red("Manifest JSON not found")));
@ -312,7 +311,6 @@ function updateManifest(cb) {
console.log(`Updating version number to '${targetVersion}'`);
packageJson.version = targetVersion;
packageLockJson.version = targetVersion;
manifest.file.version = targetVersion;
/* Update URL */
@ -327,7 +325,6 @@ function updateManifest(cb) {
}) + "\n";
fs.writeJSONSync("package.json", packageJson, { spaces: 4 });
fs.writeJSONSync("package-lock.json", packageLockJson, { spaces: 4 });
fs.writeFileSync(path.join(manifest.root, manifest.name), prettyProjectJson, "utf8");
return cb();