Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .github/changelog/release-composer-install
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: Fixed

Install production Composer dependencies before building release packages.
9 changes: 8 additions & 1 deletion bin/release.js
Original file line number Diff line number Diff line change
Expand Up @@ -282,10 +282,17 @@ async function createRelease() {
] );
} );

// Stage and commit changes
// Install production-only Composer dependencies
exec( 'composer run release' );

// Stage and commit changes (force-add vendor/ which is gitignored)
exec( 'git add .' );
exec( 'git add --force vendor/' );
exec( `git commit -m "Release ${ version }"` );

// Restore dev dependencies for continued development
exec( 'composer install' );

// Push to remote
exec( `git push -u origin ${ branchName }` );

Expand Down