You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: scripts/new-release.sh
+46-34
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,6 @@
1
1
#!/usr/bin/env bash
2
2
set -euxo pipefail
3
3
4
-
5
4
ErrorReleaseExists=2
6
5
ErrorReleaseArgMissing=3
7
6
ErrorReleaseTagExists=4
@@ -17,14 +16,14 @@ NumberOfReleases=12 # the number of releases on the table
17
16
18
17
IgnorePaths=("README.md")
19
18
20
-
functionguardMissingArg() {
19
+
functionguardMissingArg() {
21
20
if [ "$#"-ne 1 ];then
22
21
echo"Release argument missing."
23
22
exit"$ErrorReleaseArgMissing"
24
23
fi
25
24
}
26
25
27
-
functionguardExisting() {
26
+
functionguardExisting() {
28
27
if grep -qFx "$newRelease""$ReleasesFile";then
29
28
echo"Release $newRelease already exists!"
30
29
exit"$ErrorReleaseExists"
@@ -35,14 +34,14 @@ function guardExisting () {
35
34
fi
36
35
}
37
36
38
-
functionprepare() {
37
+
functionprepare() {
39
38
# This git config setting, in combination with the `.gitattributes` file, tells the scripts to not pay attention to some files that don't need to be in the diffs, like the root `.gitignore` of this repo (not the RnDiffApp project).
40
39
git config --local diff.nodiff.command true
41
40
git pull
42
41
npm install
43
42
}
44
43
45
-
functiongenerateNewReleaseBranch() {
44
+
functiongenerateNewReleaseBranch() {
46
45
# go to the base app branch
47
46
git worktree add wt-app "$AppBaseBranch"
48
47
cd wt-app
@@ -59,9 +58,9 @@ function generateNewReleaseBranch () {
59
58
# generate app and remove generated git repo
60
59
# if we're generating the template for an -rc release, let's grab cli@next
0 commit comments