chore: fix build script

pull/149/head
sualko 2021-04-19 11:34:47 +02:00
parent 4115990bb1
commit 9e3a320a65
2 changed files with 6 additions and 4 deletions

View File

@ -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.*
]]></description>
<version>1.3.0</version>
<version>1.3.0-git.64d2339</version>
<licence>agpl</licence>
<author mail="klaus@jsxc.org">Klaus Herberth</author>
<namespace>BigBlueButton</namespace>

View File

@ -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.';
}