From 9e3a320a65b9faf91fdc11616efa00913a176f75 Mon Sep 17 00:00:00 2001 From: sualko Date: Mon, 19 Apr 2021 11:34:47 +0200 Subject: [PATCH] chore: fix build script --- appinfo/info.xml | 2 +- scripts/build-release.js | 8 +++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/appinfo/info.xml b/appinfo/info.xml index 2e8e2a1..26d871f 100644 --- a/appinfo/info.xml +++ b/appinfo/info.xml @@ -22,7 +22,7 @@ Developer wanted! If you have time it would be awesome if you could help to enha *This app integrates BigBlueButton and is not endorsed or certified by BigBlueButton Inc. BigBlueButton and the BigBlueButton Logo are trademarks of BigBlueButton Inc.* ]]> - 1.3.0 + 1.3.0-git.64d2339 agpl Klaus Herberth BigBlueButton diff --git a/scripts/build-release.js b/scripts/build-release.js index b08461b..288b15f 100644 --- a/scripts/build-release.js +++ b/scripts/build-release.js @@ -64,8 +64,10 @@ async function createRelease(appId) { const version = await getVersion(); console.log(`I'm now building ${appId} in version ${version}.`.verbose); - await isRepoClean(); - console.log('✔ repo is clean'.green); + if (isStableRelease) { + await isRepoClean(); + console.log('✔ repo is clean'.green); + } await execa('yarn', ['composer:install:dev']); console.log('✔ composer dev dependencies installed'.green); @@ -93,7 +95,7 @@ async function createRelease(appId) { async function isRepoClean() { const status = await git.status(); - if (status.staged.length > 0) { + if (status.staged.length > 1) { throw 'Repo not clean. Found staged files.'; }