Skip to content

Commit 2fe09b9

Browse files
authored
Fix: Release scripts and updating preview version (#66)
1 parent 751339a commit 2fe09b9

4 files changed

Lines changed: 22 additions & 6 deletions

File tree

build/release.sh

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,19 @@ push_to_github() {
125125
fi
126126
}
127127

128+
tag_release_on_github() {
129+
if yarn run github-release; then
130+
echo "----------------------------------------------------------------------"
131+
echo "Pushing new GitHub release succuessfully"
132+
echo "----------------------------------------------------------------------"
133+
else
134+
echo "----------------------------------------------------------------------"
135+
echo "Error pushing new GitHub release"
136+
echo "----------------------------------------------------------------------"
137+
exit 1
138+
fi
139+
}
140+
128141
move_reports() {
129142
echo "--------------------------------------------------------------------------"
130143
echo "Moving test reports to ./reports/cobertura.xml and ./reports/junit.xml"
@@ -211,10 +224,12 @@ push_new_release() {
211224
fi
212225

213226
# Push GitHub release
214-
echo "----------------------------------------------------------------------"
215-
echo "Pushing new GitHub release"
216-
echo "----------------------------------------------------------------------"
217-
./node_modules/.bin/conventional-github-releaser
227+
if ! tag_release_on_github; then
228+
echo "----------------------------------------------------"
229+
echo "Error in tag_release_on_github!"
230+
echo "----------------------------------------------------"
231+
exit 1
232+
fi
218233
}
219234

220235
# Check if we are doing major, minor, or patch release

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@
4343
"npm": "webpack -p --progress --colors --config build/webpack.npm.config.js",
4444
"clean": "rm -rf dist && rm -rf lib && rm -rf reports/coverage && rm -rf src/i18n/json",
4545
"changelog": "./node_modules/.bin/conventional-changelog -i CHANGELOG.md -s -r 0",
46+
"github-release": "./node_modules/.bin/conventional-github-releaser",
4647
"prettier": "prettier-eslint --print-width 120 --tab-width 4 --single-quote --semi --write --bracket-spacing true \"src/**/*.js\"",
4748
"commitmsg": "conventional-changelog-lint -e",
4849
"prepush": "yarn run lint && yarn run flow && yarn run test",

src/constants.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ export const DELIMITER_SLASH: 'slash' = 'slash';
9999
export const DELIMITER_CARET: 'caret' = 'caret';
100100

101101
/* ---------------------- Defaults -------------------------- */
102-
export const DEFAULT_PREVIEW_VERSION = '1.11.0';
102+
export const DEFAULT_PREVIEW_VERSION = '1.12.0';
103103
export const DEFAULT_PREVIEW_LOCALE = 'en-US';
104104
export const DEFAULT_PATH_STATIC = 'platform/elements';
105105
export const DEFAULT_PATH_STATIC_PREVIEW = 'platform/preview';

test/preview.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
window.onload = function() {
2323
const { ContentExplorer } = Box;
2424
const explorer = new ContentExplorer();
25-
explorer.show('0', '7F3tLTWAqInxn3ZEeAYSeM2KzFqraCHy', {
25+
explorer.show('0', 'dcs5EcLt7cxE7IH7dpZ8af6zfwL1JKDE', {
2626
hasPreviewSidebar: true
2727
});
2828
}

0 commit comments

Comments
 (0)