Skip to content

Commit edac306

Browse files
tonyjinpriyajeet
authored andcommitted
Update: Bump Preview version and add GitHub releases (#38)
Added conventional-github-releaser to release.sh to add GitHub release notes.
1 parent c722028 commit edac306

4 files changed

Lines changed: 38 additions & 5 deletions

File tree

build/release.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,12 @@ push_new_release() {
209209
echo "----------------------------------------------------"
210210
exit 1
211211
fi
212+
213+
# Push GitHub release
214+
echo "----------------------------------------------------------------------"
215+
echo "Pushing new GitHub release"
216+
echo "----------------------------------------------------------------------"
217+
./node_modules/.bin/conventional-github-releaser
212218
}
213219

214220
# 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
@@ -109,6 +109,7 @@
109109
"conventional-changelog": "^1.1.3",
110110
"conventional-changelog-cli": "^1.3.1",
111111
"conventional-changelog-lint": "^2.1.1",
112+
"conventional-github-releaser": "^1.1.12",
112113
"cpx": "^1.5.0",
113114
"css-loader": "^0.28.4",
114115
"deepmerge": "^1.5.0",

src/constants.js

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

7878
/* ---------------------- Defaults -------------------------- */
79-
export const DEFAULT_PREVIEW_VERSION = '1.1.1';
79+
export const DEFAULT_PREVIEW_VERSION = '1.2.1';
8080
export const DEFAULT_PREVIEW_LOCALE = 'en-US';
8181
export const DEFAULT_HOSTNAME_API = 'https://api.box.com';
8282
export const DEFAULT_HOSTNAME_STATIC = 'https://cdn01.boxcdn.net';

yarn.lock

Lines changed: 30 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1734,7 +1734,7 @@ conventional-changelog-writer@^1.1.0:
17341734
split "^1.0.0"
17351735
through2 "^2.0.0"
17361736

1737-
conventional-changelog@^1.1.3:
1737+
conventional-changelog@^1.1.0, conventional-changelog@^1.1.3:
17381738
version "1.1.4"
17391739
resolved "https://registry.yarnpkg.com/conventional-changelog/-/conventional-changelog-1.1.4.tgz#108bc750c2a317e200e2f9b413caaa1f8c7efa3b"
17401740
dependencies:
@@ -1768,6 +1768,22 @@ conventional-commits-parser@1.3.0, conventional-commits-parser@^1.0.0:
17681768
through2 "^2.0.0"
17691769
trim-off-newlines "^1.0.0"
17701770

1771+
conventional-github-releaser@^1.1.12:
1772+
version "1.1.12"
1773+
resolved "https://registry.yarnpkg.com/conventional-github-releaser/-/conventional-github-releaser-1.1.12.tgz#064db4b5508bacd572ba303be3f37786e4e6465e"
1774+
dependencies:
1775+
conventional-changelog "^1.1.0"
1776+
dateformat "^1.0.11"
1777+
git-semver-tags "^1.0.0"
1778+
github "^0.2.4"
1779+
lodash.merge "^4.0.2"
1780+
meow "^3.3.0"
1781+
object-assign "^4.0.1"
1782+
q "^1.4.1"
1783+
semver "^5.0.1"
1784+
semver-regex "^1.0.0"
1785+
through2 "^2.0.0"
1786+
17711787
convert-source-map@^1.1.0:
17721788
version "1.5.0"
17731789
resolved "https://registry.yarnpkg.com/convert-source-map/-/convert-source-map-1.5.0.tgz#9acd70851c6d5dfdd93d9282e5edf94a03ff46b5"
@@ -3247,7 +3263,7 @@ git-remote-origin-url@^2.0.0:
32473263
gitconfiglocal "^1.0.0"
32483264
pify "^2.3.0"
32493265

3250-
git-semver-tags@^1.2.0:
3266+
git-semver-tags@^1.0.0, git-semver-tags@^1.2.0:
32513267
version "1.2.0"
32523268
resolved "https://registry.yarnpkg.com/git-semver-tags/-/git-semver-tags-1.2.0.tgz#b31fd02c8ab578bd6c9b5cacca5e1c64c1177ac1"
32533269
dependencies:
@@ -3271,6 +3287,12 @@ github-url-from-git@^1.4.0:
32713287
version "1.5.0"
32723288
resolved "https://registry.yarnpkg.com/github-url-from-git/-/github-url-from-git-1.5.0.tgz#f985fedcc0a9aa579dc88d7aff068d55cc6251a0"
32733289

3290+
github@^0.2.4:
3291+
version "0.2.4"
3292+
resolved "https://registry.yarnpkg.com/github/-/github-0.2.4.tgz#24fa7f0e13fa11b946af91134c51982a91ce538b"
3293+
dependencies:
3294+
mime "^1.2.11"
3295+
32743296
glob-base@^0.3.0:
32753297
version "0.3.0"
32763298
resolved "https://registry.yarnpkg.com/glob-base/-/glob-base-0.3.0.tgz#dbb164f6221b1c0b1ccf82aea328b497df0ea3c4"
@@ -4558,7 +4580,7 @@ lodash.memoize@^4.1.2:
45584580
version "4.1.2"
45594581
resolved "https://registry.yarnpkg.com/lodash.memoize/-/lodash.memoize-4.1.2.tgz#bcc6c49a42a2840ed997f323eada5ecd182e0bfe"
45604582

4561-
lodash.merge@^4.4.0, lodash.merge@^4.6.0:
4583+
lodash.merge@^4.0.2, lodash.merge@^4.4.0, lodash.merge@^4.6.0:
45624584
version "4.6.0"
45634585
resolved "https://registry.yarnpkg.com/lodash.merge/-/lodash.merge-4.6.0.tgz#69884ba144ac33fe699737a6086deffadd0f89c5"
45644586

@@ -4813,7 +4835,7 @@ mime@1.3.4:
48134835
version "1.3.4"
48144836
resolved "https://registry.yarnpkg.com/mime/-/mime-1.3.4.tgz#115f9e3b6b3daf2959983cb38f149a2d40eb5d53"
48154837

4816-
mime@^1.3.4:
4838+
mime@^1.2.11, mime@^1.3.4:
48174839
version "1.3.6"
48184840
resolved "https://registry.yarnpkg.com/mime/-/mime-1.3.6.tgz#591d84d3653a6b0b4a3b9df8de5aa8108e72e5e0"
48194841

@@ -6529,6 +6551,10 @@ selfsigned@^1.9.1:
65296551
dependencies:
65306552
node-forge "0.6.33"
65316553

6554+
semver-regex@^1.0.0:
6555+
version "1.0.0"
6556+
resolved "https://registry.yarnpkg.com/semver-regex/-/semver-regex-1.0.0.tgz#92a4969065f9c70c694753d55248fc68f8f652c9"
6557+
65326558
"semver@2 || 3 || 4 || 5", semver@^5.0.1, semver@^5.3.0, semver@~5.3.0:
65336559
version "5.3.0"
65346560
resolved "https://registry.yarnpkg.com/semver/-/semver-5.3.0.tgz#9b2ce5d3de02d17c6012ad326aa6b4d0cf54f94f"

0 commit comments

Comments
 (0)