Skip to content

Commit eeddd56

Browse files
author
Brian Vaughn
committed
Tweaked shell script date format string
1 parent ab7e1e7 commit eeddd56

File tree

3 files changed

+4
-24
lines changed

3 files changed

+4
-24
lines changed

packages/shared/ReactVersion.js

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1 @@
1-
/**
2-
* Copyright (c) Facebook, Inc. and its affiliates.
3-
*
4-
* This source code is licensed under the MIT license found in the
5-
* LICENSE file in the root directory of this source tree.
6-
*/
7-
8-
// TODO: this is special because it gets imported during build.
9-
//
10-
// TODO: 17.0.3 has not been released to NPM;
11-
// It exists as a placeholder so that DevTools can support work tag changes between releases.
12-
// When we next publish a release (either 17.0.3 or 17.1.0), update the matching TODO in backend/renderer.js
13-
// TODO: This module is used both by the release scripts and to expose a version
14-
// at runtime. We should instead inject the version number as part of the build
15-
// process, and use the ReactVersions.js module as the single source of truth.
16-
export default '17.0.3';
1+
export default '18.0.0-ab7e1e724-20210622';

scripts/release/utils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ const getChecksumForCurrentRevision = async cwd => {
106106

107107
const getDateStringForCommit = async commit => {
108108
return await execRead(
109-
`git show -s --format=%cd --date=format:'%Y%m%d' ${commit}`
109+
`git show -s --format=%cd --date=format:%Y%m%d ${commit}`
110110
);
111111
};
112112

scripts/rollup/build-all-release-channels.js

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,8 @@ const sha = (
2323
).trim();
2424

2525
const dateString = (
26-
spawnSync('git', [
27-
'show',
28-
'-s',
29-
'--format=%cd',
30-
"--date=format:'%Y%m%d'",
31-
sha,
32-
]).stdout + ''
26+
spawnSync('git', ['show', '-s', '--format=%cd', '--date=format:%Y%m%d', sha])
27+
.stdout + ''
3328
).trim();
3429

3530
if (process.env.CIRCLE_NODE_TOTAL) {

0 commit comments

Comments
 (0)