Skip to content

Commit 572a79f

Browse files
authored
[CI] Fix sandbox standalone setup for regular branch (#28)
1 parent 6f16b7d commit 572a79f

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

sandbox/bin/setup-standalone

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,12 @@ chdir($APP_DIR);
5252
* 3/ Install dependencies with standalone bundle
5353
*/
5454

55+
$branchOrRev = exec('git branch --show-current') ?: exec('git rev-parse HEAD');
56+
5557
exec(sprintf('rm -rf %1$s/vendor %1$s/node_modules', $APP_DIR));
5658
putenv('COMPOSER=composer-standalone.json');
57-
exec('composer require sensiolabs/storybook-bundle:dev-$(git rev-parse HEAD)');
58-
exec('composer install -n --no-scripts');
59+
exec(sprintf('composer require --no-update sensiolabs/storybook-bundle:dev-%s', $branchOrRev));
60+
exec('composer install -n');
5961
exec('npm install --no-package-lock');
6062

6163
exit(0);

0 commit comments

Comments
 (0)