@@ -25,16 +25,39 @@ const run = async ({cwd, packages, tags}) => {
25
25
) ;
26
26
27
27
if ( tags . includes ( 'latest' ) ) {
28
+ console . log ( ) ;
28
29
console . log (
29
- theme . header `\nLocal versions may require updating after a stable release. Please verify the following files: `
30
+ theme . header `Please review and commit all local, staged changes. `
30
31
) ;
32
+
33
+ console . log ( ) ;
34
+ console . log ( 'Version numbers have been updated in the following files:' ) ;
31
35
for ( let i = 0 ; i < packages . length ; i ++ ) {
32
36
const packageName = packages [ i ] ;
33
37
console . log ( theme . path `• packages/%s/package.json` , packageName ) ;
34
38
}
35
39
console . log ( theme . path `• packages/shared/ReactVersion.js` ) ;
40
+
41
+ console . log ( ) ;
42
+ if ( environment === 'ci' ) {
43
+ console . log ( 'Auto-generated error codes have been updated as well:' ) ;
44
+ console . log ( theme . path `• scripts/error-codes/codes.json` ) ;
45
+ } else {
46
+ console . log (
47
+ theme `{caution The release that was just published was created locally.} ` +
48
+ theme `Because of this, you will need to update the generated ` +
49
+ theme `{path scripts/error-codes/codes.json} file manually:`
50
+ ) ;
51
+ console . log ( theme ` {command git checkout} {version ${ commit } }` ) ;
52
+ console . log ( theme ` {command yarn build -- --extract-errors}` ) ;
53
+ }
36
54
}
37
55
56
+ console . log ( ) ;
57
+ console . log (
58
+ theme `{header Don't forget to update and commit the }{path CHANGELOG}`
59
+ ) ;
60
+
38
61
// Prompt the release engineer to tag the commit and update the CHANGELOG.
39
62
// (The script could automatically do this, but this seems safer.)
40
63
console . log ( ) ;
@@ -49,31 +72,8 @@ const run = async ({cwd, packages, tags}) => {
49
72
) ;
50
73
console . log ( theme . command ` git push origin --tags` ) ;
51
74
52
- if ( tags . includes ( 'latest' ) ) {
53
- console . log ( ) ;
54
- console . log (
55
- theme `{header Don't forget to commit the generated }{path scripts/error-codes/codes.json}`
56
- ) ;
57
- if ( environment === 'ci' ) {
58
- console . log (
59
- `This file has been updated locally. Please review it before committing.`
60
- ) ;
61
- } else {
62
- console . log (
63
- `The release that was just published was created locally. ` +
64
- `Because of this, you will need to update error codes manually with the following commands:`
65
- ) ;
66
- console . log ( theme ` {command git checkout} {version ${ commit } }` ) ;
67
- console . log ( theme ` {command yarn build -- --extract-errors}` ) ;
68
- }
69
- }
70
-
71
- console . log ( ) ;
72
- console . log (
73
- theme `{header Don't forget to update and commit the }{path CHANGELOG}`
74
- ) ;
75
75
console . log ( ) ;
76
- console . log ( theme . header `Then fill in the release on GitHub:` ) ;
76
+ console . log ( theme . header `Lastly, please fill in the release on GitHub:` ) ;
77
77
console . log (
78
78
theme . link `https://github.com/facebook/react/releases/tag/v%s` ,
79
79
version
0 commit comments