From a1d9296a4e2a3cf7c9965eccd641bad20adfa5bb Mon Sep 17 00:00:00 2001 From: Tobias Date: Wed, 19 Dec 2018 09:17:52 +0100 Subject: [PATCH 1/2] verify ci conditions to make npm release on done ci possible --- packages/dnb-ui-lib/.releaserc | 1 - packages/dnb-ui-lib/.releaserc_README | 2 +- packages/dnb-ui-lib/package.json | 1 - yarn.lock | 27 --------------------------- 4 files changed, 1 insertion(+), 30 deletions(-) diff --git a/packages/dnb-ui-lib/.releaserc b/packages/dnb-ui-lib/.releaserc index 2c2ac252589..28da608571b 100644 --- a/packages/dnb-ui-lib/.releaserc +++ b/packages/dnb-ui-lib/.releaserc @@ -3,6 +3,5 @@ "debug": false, "dryRun": false, "branch": "master", - "verifyConditions": "condition-circle", "analyzeCommits": "simple-commit-message" } diff --git a/packages/dnb-ui-lib/.releaserc_README b/packages/dnb-ui-lib/.releaserc_README index 13520cb9411..c6c048aa8aa 100644 --- a/packages/dnb-ui-lib/.releaserc_README +++ b/packages/dnb-ui-lib/.releaserc_README @@ -1,5 +1,5 @@ { ... - "verifyConditions": "condition-circle", <--- For CircleCI usage, make sure we have this condition in place + "verifyConditions": "condition-circle", <--- For CircleCI usage, make sure we have this condition in place (has also to be installed in the package.json) ... } diff --git a/packages/dnb-ui-lib/package.json b/packages/dnb-ui-lib/package.json index 7af416e7d97..b6e97e3b0b2 100644 --- a/packages/dnb-ui-lib/package.json +++ b/packages/dnb-ui-lib/package.json @@ -99,7 +99,6 @@ "chalk": "^2.4.1", "ci-info": "^2.0.0", "color": "^3.1.0", - "condition-circle": "^2.0.1", "cross-env": "^5.2.0", "css-loader": "^2.0.0", "css-vars-ponyfill": "^1.15.3", diff --git a/yarn.lock b/yarn.lock index 04eb59bb3c5..ca5675d015e 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1123,11 +1123,6 @@ import-from "^2.1.0" lodash "^4.17.4" -"@semantic-release/error@2.1.0": - version "2.1.0" - resolved "https://registry.yarnpkg.com/@semantic-release/error/-/error-2.1.0.tgz#44771f676f5b148da309111285a97901aa95a6e0" - integrity sha512-r3pcw7lhzoSalM55O7L8R3gNq8AnZ7OS7RReHqJDTIuyRaQbtfZ+9S8Krvh/BSnTMYYhs4TgZctb6pOamegUtQ== - "@semantic-release/error@^2.2.0": version "2.2.0" resolved "https://registry.yarnpkg.com/@semantic-release/error/-/error-2.2.0.tgz#ee9d5a09c9969eade1ec864776aeda5c5cddbbf0" @@ -5124,16 +5119,6 @@ condense-newlines@^0.2.1: is-whitespace "^0.3.0" kind-of "^3.0.2" -condition-circle@^2.0.1: - version "2.0.1" - resolved "https://registry.yarnpkg.com/condition-circle/-/condition-circle-2.0.1.tgz#39cfd9eaa37985b5d7c5b5c538bf872f016b743c" - integrity sha512-h23W0qyxBRAckXTvnSAKA5h28APD3w8acNVi3RfHTtb6QDIVmqY+Mawk9yEWw2k7zJLNXvr9zAUn6bi5eyP26A== - dependencies: - "@semantic-release/error" "2.1.0" - cross-spawn "5.1.0" - debug "3.1.0" - safe-env "1.2.0" - config-chain@^1.1.11, config-chain@~1.1.11, config-chain@~1.1.5: version "1.1.12" resolved "https://registry.yarnpkg.com/config-chain/-/config-chain-1.1.12.tgz#0fde8d091200eb5e808caf25fe618c02f48e4efa" @@ -16940,11 +16925,6 @@ railroad-diagrams@^1.0.0: resolved "https://registry.yarnpkg.com/railroad-diagrams/-/railroad-diagrams-1.0.0.tgz#eb7e6267548ddedfb899c1b90e57374559cddb7e" integrity sha1-635iZ1SN3t+4mcG5Dlc3RVnN234= -ramda@0.22.1: - version "0.22.1" - resolved "https://registry.yarnpkg.com/ramda/-/ramda-0.22.1.tgz#031da0c3df417c5b33c96234757eb37033f36a0e" - integrity sha1-Ax2gw99BfFszyWI0dX6zcDPzag4= - ramda@0.25.0: version "0.25.0" resolved "https://registry.yarnpkg.com/ramda/-/ramda-0.25.0.tgz#8fdf68231cffa90bc2f9460390a0cb74a29b29a9" @@ -18274,13 +18254,6 @@ safe-buffer@5.1.2, safe-buffer@^5.0.1, safe-buffer@^5.1.0, safe-buffer@^5.1.1, s resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.1.2.tgz#991ec69d296e0313747d59bdfd2b745c35f8828d" integrity sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g== -safe-env@1.2.0: - version "1.2.0" - resolved "https://registry.yarnpkg.com/safe-env/-/safe-env-1.2.0.tgz#d5b65e0f147e7b7edd5593b9e1fd4bd710e0254f" - integrity sha1-1bZeDxR+e37dVZO54f1L1xDgJU8= - dependencies: - ramda "0.22.1" - safe-regex@^1.1.0: version "1.1.0" resolved "https://registry.yarnpkg.com/safe-regex/-/safe-regex-1.1.0.tgz#40a3669f3b077d1e943d44629e157dd48023bf2e" From 6189bf592d675d227209f538c663a057461b62b5 Mon Sep 17 00:00:00 2001 From: Tobias Date: Wed, 19 Dec 2018 09:55:35 +0100 Subject: [PATCH 2/2] add slack notification to ci config --- .drone.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.drone.yml b/.drone.yml index fe97da6bd03..9a3bcafbf2c 100644 --- a/.drone.yml +++ b/.drone.yml @@ -88,3 +88,14 @@ steps: include: - master - release/* + + - name: slack + image: plugins/slack + settings: + webhook: + from_secret: SLACK_WEBHOOK + channel: dnb-design-system + username: DroneCI + icon_url: https://picsum.photos/256/256/?random + when: + status: [success, failure]