diff --git a/build/release.sh b/build/release.sh index 376282981..08dfeba4a 100755 --- a/build/release.sh +++ b/build/release.sh @@ -171,6 +171,12 @@ push_new_release() { # Push to GitHub push_to_github || return 1 + + # Push GitHub release + echo "----------------------------------------------------------------------" + echo "Pushing new GitHub release" + echo "----------------------------------------------------------------------" + ./node_modules/.bin/conventional-github-releaser || return 1 } diff --git a/package.json b/package.json index 97a452dc7..4b05a0941 100644 --- a/package.json +++ b/package.json @@ -28,6 +28,7 @@ "chai-dom": "^1.5.0", "conventional-changelog-cli": "^1.3.2", "conventional-changelog-lint": "^1.1.7", + "conventional-github-releaser": "^1.1.12", "css-loader": "^0.27.3", "cssnano-cli": "^1.0.5", "deepmerge": "^1.5.0", diff --git a/src/lib/file.js b/src/lib/file.js index c8b941ad5..0b9e6bab3 100644 --- a/src/lib/file.js +++ b/src/lib/file.js @@ -99,7 +99,7 @@ export function checkFileValid(file) { } /** - * If the file doens't already have an original representation, creates an + * If the file doesn't already have an original representation, creates an * original representation url from the authenticated download url and adds * it to the file representations * diff --git a/yarn.lock b/yarn.lock index 8ae157b21..758f36035 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1595,7 +1595,7 @@ conventional-changelog-writer@^1.1.0: split "^1.0.0" through2 "^2.0.0" -conventional-changelog@^1.1.4: +conventional-changelog@^1.1.0, conventional-changelog@^1.1.4: version "1.1.4" resolved "https://registry.yarnpkg.com/conventional-changelog/-/conventional-changelog-1.1.4.tgz#108bc750c2a317e200e2f9b413caaa1f8c7efa3b" dependencies: @@ -1629,6 +1629,22 @@ conventional-commits-parser@1.3.0, conventional-commits-parser@^1.0.0: through2 "^2.0.0" trim-off-newlines "^1.0.0" +conventional-github-releaser@^1.1.12: + version "1.1.12" + resolved "https://registry.yarnpkg.com/conventional-github-releaser/-/conventional-github-releaser-1.1.12.tgz#064db4b5508bacd572ba303be3f37786e4e6465e" + dependencies: + conventional-changelog "^1.1.0" + dateformat "^1.0.11" + git-semver-tags "^1.0.0" + github "^0.2.4" + lodash.merge "^4.0.2" + meow "^3.3.0" + object-assign "^4.0.1" + q "^1.4.1" + semver "^5.0.1" + semver-regex "^1.0.0" + through2 "^2.0.0" + convert-source-map@^1.1.0: version "1.5.0" resolved "https://registry.yarnpkg.com/convert-source-map/-/convert-source-map-1.5.0.tgz#9acd70851c6d5dfdd93d9282e5edf94a03ff46b5" @@ -2962,7 +2978,7 @@ git-remote-origin-url@^2.0.0: gitconfiglocal "^1.0.0" pify "^2.3.0" -git-semver-tags@^1.2.0: +git-semver-tags@^1.0.0, git-semver-tags@^1.2.0: version "1.2.1" resolved "https://registry.yarnpkg.com/git-semver-tags/-/git-semver-tags-1.2.1.tgz#6ccd2a52e735b736748dc762444fcd9588e27490" dependencies: @@ -2986,6 +3002,12 @@ github-url-from-git@^1.4.0: version "1.5.0" resolved "https://registry.yarnpkg.com/github-url-from-git/-/github-url-from-git-1.5.0.tgz#f985fedcc0a9aa579dc88d7aff068d55cc6251a0" +github@^0.2.4: + version "0.2.4" + resolved "https://registry.yarnpkg.com/github/-/github-0.2.4.tgz#24fa7f0e13fa11b946af91134c51982a91ce538b" + dependencies: + mime "^1.2.11" + glob-base@^0.3.0: version "0.3.0" resolved "https://registry.yarnpkg.com/glob-base/-/glob-base-0.3.0.tgz#dbb164f6221b1c0b1ccf82aea328b497df0ea3c4" @@ -4164,7 +4186,7 @@ lodash.memoize@^4.1.2: version "4.1.2" resolved "https://registry.yarnpkg.com/lodash.memoize/-/lodash.memoize-4.1.2.tgz#bcc6c49a42a2840ed997f323eada5ecd182e0bfe" -lodash.merge@^4.6.0: +lodash.merge@^4.0.2, lodash.merge@^4.6.0: version "4.6.0" resolved "https://registry.yarnpkg.com/lodash.merge/-/lodash.merge-4.6.0.tgz#69884ba144ac33fe699737a6086deffadd0f89c5" @@ -4389,7 +4411,7 @@ mime@1.3.4: version "1.3.4" resolved "https://registry.yarnpkg.com/mime/-/mime-1.3.4.tgz#115f9e3b6b3daf2959983cb38f149a2d40eb5d53" -mime@^1.3.4: +mime@^1.2.11, mime@^1.3.4: version "1.3.6" resolved "https://registry.yarnpkg.com/mime/-/mime-1.3.6.tgz#591d84d3653a6b0b4a3b9df8de5aa8108e72e5e0" @@ -5995,6 +6017,10 @@ scss-tokenizer@^0.2.3: js-base64 "^2.1.8" source-map "^0.4.2" +semver-regex@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/semver-regex/-/semver-regex-1.0.0.tgz#92a4969065f9c70c694753d55248fc68f8f652c9" + "semver@2 || 3 || 4 || 5", semver@^5.0.1, semver@^5.3.0, semver@~5.3.0: version "5.3.0" resolved "https://registry.yarnpkg.com/semver/-/semver-5.3.0.tgz#9b2ce5d3de02d17c6012ad326aa6b4d0cf54f94f"