Skip to content

Commit

Permalink
Merge pull request #11032 from jeabakker/release-script
Browse files Browse the repository at this point in the history
chore(release): update hash in composer.lock with new release
  • Loading branch information
jdalsem committed Jul 26, 2017
2 parents 04b9c8d + 0270b47 commit f2d74bd
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .scripts/release.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,16 @@ function run_commands($commands) {
$json = $encoding->encode($composer_config, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES);
file_put_contents($composer_path, $json);

// Generate changelog
// make the new release
run_commands(array(
// update hash in composer.lock, because version was updated and now there is a mismatch between .json and .lock
"composer update --lock",
// Generate changelog
"sphinx-build -b gettext docs docs/locale/pot",
"sphinx-intl build --locale-dir=docs/locale/",
"npm install && npm update",
"node .scripts/write-changelog.js",
// commit everything to github
"git add .",
"git commit -am \"chore(release): v$version\"",
));

0 comments on commit f2d74bd

Please sign in to comment.