Skip to content

Commit

Permalink
Actually fail CI (#95)
Browse files Browse the repository at this point in the history
  • Loading branch information
TylerLeonhardt authored Apr 16, 2020
1 parent 4ae1ea8 commit f2bdd1f
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,21 @@ if (!(Get-Command npm)) {
}

npm install
if (!$?) {
throw "npm failed to install"
}

if ($Watch.IsPresent) {
npm run watch
if (!$?) {
throw "npm failed to run"
}
return
} else {
npm run compile
if (!$?) {
throw "npm failed to compile"
}
}

if ($Test.IsPresent) {
Expand All @@ -42,4 +51,9 @@ if ($Test.IsPresent) {

if ($Pack.IsPresent) {
npm pack
if (!$?) {
throw "npm failed to pack"
}
}

Write-Host "Completed!"

0 comments on commit f2bdd1f

Please sign in to comment.