git pull before versioning

This commit is contained in:
Wilson Lin 2021-01-06 21:01:32 +11:00
parent c265dd139e
commit 5922b02fe4
1 changed files with 1 additions and 0 deletions

View File

@ -66,6 +66,7 @@ const replaceInFile = (path, pattern, replacement) => writeFileSync(path, readFi
if (cmd('git', 'status', '--porcelain', {throwOnStderr: true, captureStdio: true}).stdout) {
throw new Error('Working directory not clean');
}
cmd('git', 'pull');
cmd('bash', './prebuild.sh');
cmd('cargo', 'test', '--features', 'js-esbuild');