Skip to content

Commit

Permalink
Fixed date-string parsing in build-combined script
Browse files Browse the repository at this point in the history
  • Loading branch information
Brian Vaughn committed Jun 23, 2021
1 parent 1ed7579 commit ab7e1e7
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions scripts/rollup/build-all-release-channels.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

const fs = require('fs');
const fse = require('fs-extra');
const {execSync, spawnSync} = require('child_process');
const {spawnSync} = require('child_process');
const path = require('path');
const tmp = require('tmp');

Expand All @@ -22,10 +22,15 @@ const sha = (
spawnSync('git', ['show', '-s', '--format=%h']).stdout + ''
).trim();

const {stdout} = execSync(
`git show -s --format=%cd --date=format:'%Y%m%d' ${sha}`
);
const dateString = stdout.trim();
const dateString = (
spawnSync('git', [
'show',
'-s',
'--format=%cd',
"--date=format:'%Y%m%d'",
sha,
]).stdout + ''
).trim();

if (process.env.CIRCLE_NODE_TOTAL) {
// In CI, we use multiple concurrent processes. Allocate half the processes to
Expand Down

0 comments on commit ab7e1e7

Please sign in to comment.