Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
N
next.js
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Alex
next.js
Commits
6a88ec18
Commit
6a88ec18
authored
Jan 28, 2020
by
JJ Kasper
Committed by
Joe Haddad
Jan 28, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make sure to exit publish script with correct code (#10310)
parent
ee9ccc84
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
publish-release.sh
publish-release.sh
+10
-0
No files found.
publish-release.sh
View file @
6a88ec18
...
@@ -18,6 +18,11 @@ if [[ $(git describe --exact-match 2> /dev/null || :) =~ -canary ]];
...
@@ -18,6 +18,11 @@ if [[ $(git describe --exact-match 2> /dev/null || :) =~ -canary ]];
then
then
echo
"Publishing canary"
echo
"Publishing canary"
yarn run lerna publish from-git
--npm-tag
canary
--yes
yarn run lerna publish from-git
--npm-tag
canary
--yes
# Make sure to exit script with code 1 if publish failed
if
[[
!
$?
-eq
0
]]
;
then
exit
1
;
fi
else
else
echo
"Did not publish canary"
echo
"Did not publish canary"
fi
fi
...
@@ -25,6 +30,11 @@ fi
...
@@ -25,6 +30,11 @@ fi
if
[[
!
$(
git describe
--exact-match
2> /dev/null
||
:
)
=
~
-canary
]]
;
then
if
[[
!
$(
git describe
--exact-match
2> /dev/null
||
:
)
=
~
-canary
]]
;
then
echo
"Publishing stable"
echo
"Publishing stable"
yarn run lerna publish from-git
--yes
yarn run lerna publish from-git
--yes
# Make sure to exit script with code 1 if publish failed
if
[[
!
$?
-eq
0
]]
;
then
exit
1
;
fi
else
else
echo
"Did not publish stable"
echo
"Did not publish stable"
fi
fi
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment