Skip to content
This repository has been archived by the owner on Aug 18, 2020. It is now read-only.

Commit

Permalink
fix(builder): cache only post build success
Browse files Browse the repository at this point in the history
  • Loading branch information
cdaringe committed Sep 7, 2017
1 parent 08b3914 commit 808942b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/builder.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,10 +107,10 @@ module.exports = {
if (cache && cache.srcHash === srcHash && cache.semanticHash === semanticHash) {
return console.log('SKIPPING STYLEGUIDE BUILD')
}
await execa('npm', ['run', 'styleguide:build'], { cwd: this.projectRoot, stdio: 'inherit' })
await Promise.all([
db.writeAsync('srcHash', srcHash),
db.writeAsync('semanticHash', semanticHash)
])
return execa('npm', ['run', 'styleguide:build'], { cwd: this.projectRoot, stdio: 'inherit' })
}
}

0 comments on commit 808942b

Please sign in to comment.