Merge branch 'fix-release-process' into 'master'
Fix release process See merge request dungeonslayers/ds4!84
This commit is contained in:
commit
e4e4670d38
2 changed files with 1 additions and 4 deletions
|
@ -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
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue