Skip to content
This repository has been archived by the owner on Jun 29, 2018. It is now read-only.

Commit

Permalink
Bump version number in package.json before build, so version number d…
Browse files Browse the repository at this point in the history
…uring build is correct
  • Loading branch information
Daniel15 committed Dec 19, 2016
1 parent de007e2 commit c2da587
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/update.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -116,14 +116,14 @@ if (([Version]$package_json.version) -ge $babel_version) {

Write-Output ('Current version is {0}, latest Babel version is {1}' -f $package_json.version, $babel_version)

Set-PackageVersion -Package $package_json -Version $babel_version
npm install; Assert-LastExitCode

Write-Output 'Building and running tests'
npm run build; Assert-LastExitCode
npm run test; Assert-LastExitCode

Write-Output 'Build looks okay, committing and pushing changes'
Set-PackageVersion -Package $package_json -Version $babel_version
git commit -m ('Upgrade to Babel {0}' -f $babel_version) --author='DanBuild <[email protected]>' package.json; Assert-LastExitCode
git tag -a ('release-' + $babel_version) -m ('Automated upgrade to Babel {0}' -f $babel_version); Assert-LastExitCode

Expand Down

0 comments on commit c2da587

Please sign in to comment.