{"action":"created","comment":{"url":"https://api.github.com/repos/purposeindustries/intellyo-application-design-system/pulls/comments/177978361","pull_request_review_id":107954151,"id":177978361,"diff_hunk":"@@ -61,19 +61,108 @@ jobs:\n           name: e2e test\n           command: |\n             set +e\n-            if [[ $CIRCLE_BRANCH != *\"master\"* || ! -z $CIRCLE_TAG ]] ; then\n-              E2EPROFILE=saucelight npm run test:e2e\n+            npm run test:e2e\n+            STATUS=$?;\n+            if [[ ! -z $FORCE_BUILD ]] ; then\n+              echo \"The force build is active! Independently of the tests exit code the build does not fail. The exit code: $STATUS\"\n+              exit 0\n+            else\n+              exit $STATUS\n+            fi\n+\n+      - store_artifacts:\n+          path: /tmp/circleci-artifacts\n+      - store_artifacts:\n+          path: /tmp/circleci-test-results\n+\n+      - run:\n+          name: Create new release\n+          command: |\n+            if [ -n \"$RELEASE_TYPE\" ]; then\n+              git config --global user.email \"dev@purposeindustries.co\"\n+              git config --global user.name \"purpose-bot\"\n+              git config --global push.default simple\n+              npm version $RELEASE_TYPE --commit-hooks=false\n+              git push -u origin $CIRCLE_BRANCH\n+              git push --tags\n             else\n-              npm run test:e2e\n+              echo \"No RELEASE_TYPE is present, skipping creating new release.\"\n+            fi\n+      - run:\n+          name: Publish new version to npm\n+          command: |\n+            # matches v1.2.3-next, or v1.2.3-1\n+            if [[ \"$CIRCLE_TAG\" =~ ^v(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)(\\-[0-9A-Za-z-]+(\\.[0-9A-Za-z-]+)*)+(\\+[0-9A-Za-z-]+(\\.[0-9A-Za-z-]+)*)?$ ]]; then\n+              npm publish\n+            else\n+              echo \"We are not building a tag or the tag is not a valid semver ($CIRCLE_TAG)\";\n             fi\n+\n+      - run:\n+          name: Deploy the version\n+          command: |\n+            if [[ \"$CIRCLE_TAG\" =~ ^v[0-9]+(\\.[0-9]+)*$ ]]; then\n+              npm publish\n+              npm run deploy\n+            else\n+              echo \"We are not building a tag, or the tag is not major, minor or patch but preversion ($CIRCLE_TAG)\"\n+            fi\n+\n+  #Duplicated code. Not possible to solve with yaml references on circleci\n+  nightly_build:\n+    <<: *defaults\n+    steps:\n+      - checkout\n+\n+      - save_cache:\n+          key: v1-repo-{{ .Environment.CIRCLE_SHA1 }}\n+          paths:\n+            - ~/purposeindustries/content-editor","path":".circleci/config.yml","position":72,"original_position":72,"commit_id":"0f03cab813d30b562df72654513258e18a637b92","original_commit_id":"0f03cab813d30b562df72654513258e18a637b92","user":{"login":"oroce","id":462848,"avatar_url":"https://avatars2.githubusercontent.com/u/462848?v=4","gravatar_id":"","url":"https://api.github.com/users/oroce","html_url":"https://github.com/oroce","followers_url":"https://api.github.com/users/oroce/followers","following_url":"https://api.github.com/users/oroce/following{/other_user}","gists_url":"https://api.github.com/users/oroce/gists{/gist_id}","starred_url":"https://api.github.com/users/oroce/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oroce/subscriptions","organizations_url":"https://api.github.com/users/oroce/orgs","repos_url":"https://api.github.com/users/oroce/repos","events_url":"https://api.github.com/users/oroce/events{/privacy}","received_events_url":"https://api.github.com/users/oroce/received_events","type":"User","site_admin":false},"body":"haha content-editor:D can you replace with `intellyo-application-design-system` everywhere?","created_at":"2018-03-29T07:58:24Z","updated_at":"2018-03-29T07:58:36Z","html_url":"https://github.com/purposeindustries/intellyo-application-design-system/pull/362#discussion_r177978361","pull_request_url":"https://api.github.com/repos/purposeindustries/intellyo-application-design-system/pulls/362","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/purposeindustries/intellyo-application-design-system/pulls/comments/177978361"},"html":{"href":"https://github.com/purposeindustries/intellyo-application-design-system/pull/362#discussion_r177978361"},"pull_request":{"href":"https://api.github.com/repos/purposeindustries/intellyo-application-design-system/pulls/362"}}},"pull_request":{"url":"https://api.github.com/repos/purposeindustries/intellyo-application-design-system/pulls/362","id":178054941,"html_url":"https://github.com/purposeindustries/intellyo-application-design-system/pull/362","diff_url":"https://github.com/purposeindustries/intellyo-application-design-system/pull/362.diff","patch_url":"https://github.com/purposeindustries/intellyo-application-design-system/pull/362.patch","issue_url":"https://api.github.com/repos/purposeindustries/intellyo-application-design-system/issues/362","number":362,"state":"open","locked":false,"title":"Chore/nightly build set up","user":{"login":"molnosikristof","id":7290118,"avatar_url":"https://avatars2.githubusercontent.com/u/7290118?v=4","gravatar_id":"","url":"https://api.github.com/users/molnosikristof","html_url":"https://github.com/molnosikristof","followers_url":"https://api.github.com/users/molnosikristof/followers","following_url":"https://api.github.com/users/molnosikristof/following{/other_user}","gists_url":"https://api.github.com/users/molnosikristof/gists{/gist_id}","starred_url":"https://api.github.com/users/molnosikristof/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/molnosikristof/subscriptions","organizations_url":"https://api.github.com/users/molnosikristof/orgs","repos_url":"https://api.github.com/users/molnosikristof/repos","events_url":"https://api.github.com/users/molnosikristof/events{/privacy}","received_events_url":"https://api.github.com/users/molnosikristof/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-03-28T14:20:14Z","updated_at":"2018-03-29T07:58:36Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c5931ad2bb4d06fbc3ee46fed94c1dc7da5855c7","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":648908463,"url":"https://api.github.com/repos/purposeindustries/intellyo-application-design-system/labels/Review%20Needed","name":"Review Needed","color":"fbca04","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/purposeindustries/intellyo-application-design-system/pulls/362/commits","review_comments_url":"https://api.github.com/repos/purposeindustries/intellyo-application-design-system/pulls/362/comments","review_comment_url":"https://api.github.com/repos/purposeindustries/intellyo-application-design-system/pulls/comments{/number}","comments_url":"https://api.github.com/repos/purposeindustries/intellyo-application-design-system/issues/362/comments","statuses_url":"https://api.github.com/repos/purposeindustries/intellyo-application-design-system/statuses/0f03cab813d30b562df72654513258e18a637b92","head":{"label":"purposeindustries:chore/nightly-build-set-up","ref":"chore/nightly-build-set-up","sha":"0f03cab813d30b562df72654513258e18a637b92","user":{"login":"purposeindustries","id":4601838,"avatar_url":"https://avatars0.githubusercontent.com/u/4601838?v=4","gravatar_id":"","url":"https://api.github.com/users/purposeindustries","html_url":"https://github.com/purposeindustries","followers_url":"https://api.github.com/users/purposeindustries/followers","following_url":"https://api.github.com/users/purposeindustries/following{/other_user}","gists_url":"https://api.github.com/users/purposeindustries/gists{/gist_id}","starred_url":"https://api.github.com/users/purposeindustries/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/purposeindustries/subscriptions","organizations_url":"https://api.github.com/users/purposeindustries/orgs","repos_url":"https://api.github.com/users/purposeindustries/repos","events_url":"https://api.github.com/users/purposeindustries/events{/privacy}","received_events_url":"https://api.github.com/users/purposeindustries/received_events","type":"Organization","site_admin":false},"repo":{"id":97469597,"name":"intellyo-application-design-system","full_name":"purposeindustries/intellyo-application-design-system","owner":{"login":"purposeindustries","id":4601838,"avatar_url":"https://avatars0.githubusercontent.com/u/4601838?v=4","gravatar_id":"","url":"https://api.github.com/users/purposeindustries","html_url":"https://github.com/purposeindustries","followers_url":"https://api.github.com/users/purposeindustries/followers","following_url":"https://api.github.com/users/purposeindustries/following{/other_user}","gists_url":"https://api.github.com/users/purposeindustries/gists{/gist_id}","starred_url":"https://api.github.com/users/purposeindustries/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/purposeindustries/subscriptions","organizations_url":"https://api.github.com/users/purposeindustries/orgs","repos_url":"https://api.github.com/users/purposeindustries/repos","events_url":"https://api.github.com/users/purposeindustries/events{/privacy}","received_events_url":"https://api.github.com/users/purposeindustries/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/purposeindustries/intellyo-application-design-system","description":null,"fork":false,"url":"https://api.github.com/repos/purposeindustries/intellyo-application-design-system","forks_url":"https://api.github.com/repos/purposeindustries/intellyo-application-design-system/forks","keys_url":"https://api.github.com/repos/purposeindustries/intellyo-application-design-system/keys{/key_id}","collaborators_url":"https://api.github.com/repos/purposeindustries/intellyo-application-design-system/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/purposeindustries/intellyo-application-design-system/teams","hooks_url":"https://api.github.com/repos/purposeindustries/intellyo-application-design-system/hooks","issue_events_url":"https://api.github.com/repos/purposeindustries/intellyo-application-design-system/issues/events{/number}","events_url":"https://api.github.com/repos/purposeindustries/intellyo-application-design-system/events","assignees_url":"https://api.github.com/repos/purposeindustries/intellyo-application-design-system/assignees{/user}","branches_url":"https://api.github.com/repos/purposeindustries/intellyo-application-design-system/branches{/branch}","tags_url":"https://api.github.com/repos/purposeindustries/intellyo-application-design-system/tags","blobs_url":"https://api.github.com/repos/purposeindustries/intellyo-application-design-system/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/purposeindustries/intellyo-application-design-system/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/purposeindustries/intellyo-application-design-system/git/refs{/sha}","trees_url":"https://api.github.com/repos/purposeindustries/intellyo-application-design-system/git/trees{/sha}","statuses_url":"https://api.github.com/repos/purposeindustries/intellyo-application-design-system/statuses/{sha}","languages_url":"https://api.github.com/repos/purposeindustries/intellyo-application-design-system/languages","stargazers_url":"https://api.github.com/repos/purposeindustries/intellyo-application-design-system/stargazers","contributors_url":"https://api.github.com/repos/purposeindustries/intellyo-application-design-system/contributors","subscribers_url":"https://api.github.com/repos/purposeindustries/intellyo-application-design-system/subscribers","subscription_url":"https://api.github.com/repos/purposeindustries/intellyo-application-design-system/subscription","commits_url":"https://api.github.com/repos/purposeindustries/intellyo-application-design-system/commits{/sha}","git_commits_url":"https://api.github.com/repos/purposeindustries/intellyo-application-design-system/git/commits{/sha}","comments_url":"https://api.github.com/repos/purposeindustries/intellyo-application-design-system/comments{/number}","issue_comment_url":"https://api.github.com/repos/purposeindustries/intellyo-application-design-system/issues/comments{/number}","contents_url":"https://api.github.com/repos/purposeindustries/intellyo-application-design-system/contents/{+path}","compare_url":"https://api.github.com/repos/purposeindustries/intellyo-application-design-system/compare/{base}...{head}","merges_url":"https://api.github.com/repos/purposeindustries/intellyo-application-design-system/merges","archive_url":"https://api.github.com/repos/purposeindustries/intellyo-application-design-system/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/purposeindustries/intellyo-application-design-system/downloads","issues_url":"https://api.github.com/repos/purposeindustries/intellyo-application-design-system/issues{/number}","pulls_url":"https://api.github.com/repos/purposeindustries/intellyo-application-design-system/pulls{/number}","milestones_url":"https://api.github.com/repos/purposeindustries/intellyo-application-design-system/milestones{/number}","notifications_url":"https://api.github.com/repos/purposeindustries/intellyo-application-design-system/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/purposeindustries/intellyo-application-design-system/labels{/name}","releases_url":"https://api.github.com/repos/purposeindustries/intellyo-application-design-system/releases{/id}","deployments_url":"https://api.github.com/repos/purposeindustries/intellyo-application-design-system/deployments","created_at":"2017-07-17T11:38:47Z","updated_at":"2018-03-28T13:52:29Z","pushed_at":"2018-03-29T06:56:56Z","git_url":"git://github.com/purposeindustries/intellyo-application-design-system.git","ssh_url":"git@github.com:purposeindustries/intellyo-application-design-system.git","clone_url":"https://github.com/purposeindustries/intellyo-application-design-system.git","svn_url":"https://github.com/purposeindustries/intellyo-application-design-system","homepage":"http://ux.intellyo.com","size":7256,"stargazers_count":3,"watchers_count":3,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":35,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":0,"open_issues":35,"watchers":3,"default_branch":"master"}},"base":{"label":"purposeindustries:master","ref":"master","sha":"6ffaafd1beaa4757b7dfc8d6b314a2ff05cab4bf","user":{"login":"purposeindustries","id":4601838,"avatar_url":"https://avatars0.githubusercontent.com/u/4601838?v=4","gravatar_id":"","url":"https://api.github.com/users/purposeindustries","html_url":"https://github.com/purposeindustries","followers_url":"https://api.github.com/users/purposeindustries/followers","following_url":"https://api.github.com/users/purposeindustries/following{/other_user}","gists_url":"https://api.github.com/users/purposeindustries/gists{/gist_id}","starred_url":"https://api.github.com/users/purposeindustries/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/purposeindustries/subscriptions","organizations_url":"https://api.github.com/users/purposeindustries/orgs","repos_url":"https://api.github.com/users/purposeindustries/repos","events_url":"https://api.github.com/users/purposeindustries/events{/privacy}","received_events_url":"https://api.github.com/users/purposeindustries/received_events","type":"Organization","site_admin":false},"repo":{"id":97469597,"name":"intellyo-application-design-system","full_name":"purposeindustries/intellyo-application-design-system","owner":{"login":"purposeindustries","id":4601838,"avatar_url":"https://avatars0.githubusercontent.com/u/4601838?v=4","gravatar_id":"","url":"https://api.github.com/users/purposeindustries","html_url":"https://github.com/purposeindustries","followers_url":"https://api.github.com/users/purposeindustries/followers","following_url":"https://api.github.com/users/purposeindustries/following{/other_user}","gists_url":"https://api.github.com/users/purposeindustries/gists{/gist_id}","starred_url":"https://api.github.com/users/purposeindustries/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/purposeindustries/subscriptions","organizations_url":"https://api.github.com/users/purposeindustries/orgs","repos_url":"https://api.github.com/users/purposeindustries/repos","events_url":"https://api.github.com/users/purposeindustries/events{/privacy}","received_events_url":"https://api.github.com/users/purposeindustries/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/purposeindustries/intellyo-application-design-system","description":null,"fork":false,"url":"https://api.github.com/repos/purposeindustries/intellyo-application-design-system","forks_url":"https://api.github.com/repos/purposeindustries/intellyo-application-design-system/forks","keys_url":"https://api.github.com/repos/purposeindustries/intellyo-application-design-system/keys{/key_id}","collaborators_url":"https://api.github.com/repos/purposeindustries/intellyo-application-design-system/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/purposeindustries/intellyo-application-design-system/teams","hooks_url":"https://api.github.com/repos/purposeindustries/intellyo-application-design-system/hooks","issue_events_url":"https://api.github.com/repos/purposeindustries/intellyo-application-design-system/issues/events{/number}","events_url":"https://api.github.com/repos/purposeindustries/intellyo-application-design-system/events","assignees_url":"https://api.github.com/repos/purposeindustries/intellyo-application-design-system/assignees{/user}","branches_url":"https://api.github.com/repos/purposeindustries/intellyo-application-design-system/branches{/branch}","tags_url":"https://api.github.com/repos/purposeindustries/intellyo-application-design-system/tags","blobs_url":"https://api.github.com/repos/purposeindustries/intellyo-application-design-system/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/purposeindustries/intellyo-application-design-system/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/purposeindustries/intellyo-application-design-system/git/refs{/sha}","trees_url":"https://api.github.com/repos/purposeindustries/intellyo-application-design-system/git/trees{/sha}","statuses_url":"https://api.github.com/repos/purposeindustries/intellyo-application-design-system/statuses/{sha}","languages_url":"https://api.github.com/repos/purposeindustries/intellyo-application-design-system/languages","stargazers_url":"https://api.github.com/repos/purposeindustries/intellyo-application-design-system/stargazers","contributors_url":"https://api.github.com/repos/purposeindustries/intellyo-application-design-system/contributors","subscribers_url":"https://api.github.com/repos/purposeindustries/intellyo-application-design-system/subscribers","subscription_url":"https://api.github.com/repos/purposeindustries/intellyo-application-design-system/subscription","commits_url":"https://api.github.com/repos/purposeindustries/intellyo-application-design-system/commits{/sha}","git_commits_url":"https://api.github.com/repos/purposeindustries/intellyo-application-design-system/git/commits{/sha}","comments_url":"https://api.github.com/repos/purposeindustries/intellyo-application-design-system/comments{/number}","issue_comment_url":"https://api.github.com/repos/purposeindustries/intellyo-application-design-system/issues/comments{/number}","contents_url":"https://api.github.com/repos/purposeindustries/intellyo-application-design-system/contents/{+path}","compare_url":"https://api.github.com/repos/purposeindustries/intellyo-application-design-system/compare/{base}...{head}","merges_url":"https://api.github.com/repos/purposeindustries/intellyo-application-design-system/merges","archive_url":"https://api.github.com/repos/purposeindustries/intellyo-application-design-system/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/purposeindustries/intellyo-application-design-system/downloads","issues_url":"https://api.github.com/repos/purposeindustries/intellyo-application-design-system/issues{/number}","pulls_url":"https://api.github.com/repos/purposeindustries/intellyo-application-design-system/pulls{/number}","milestones_url":"https://api.github.com/repos/purposeindustries/intellyo-application-design-system/milestones{/number}","notifications_url":"https://api.github.com/repos/purposeindustries/intellyo-application-design-system/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/purposeindustries/intellyo-application-design-system/labels{/name}","releases_url":"https://api.github.com/repos/purposeindustries/intellyo-application-design-system/releases{/id}","deployments_url":"https://api.github.com/repos/purposeindustries/intellyo-application-design-system/deployments","created_at":"2017-07-17T11:38:47Z","updated_at":"2018-03-28T13:52:29Z","pushed_at":"2018-03-29T06:56:56Z","git_url":"git://github.com/purposeindustries/intellyo-application-design-system.git","ssh_url":"git@github.com:purposeindustries/intellyo-application-design-system.git","clone_url":"https://github.com/purposeindustries/intellyo-application-design-system.git","svn_url":"https://github.com/purposeindustries/intellyo-application-design-system","homepage":"http://ux.intellyo.com","size":7256,"stargazers_count":3,"watchers_count":3,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":35,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":0,"open_issues":35,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/purposeindustries/intellyo-application-design-system/pulls/362"},"html":{"href":"https://github.com/purposeindustries/intellyo-application-design-system/pull/362"},"issue":{"href":"https://api.github.com/repos/purposeindustries/intellyo-application-design-system/issues/362"},"comments":{"href":"https://api.github.com/repos/purposeindustries/intellyo-application-design-system/issues/362/comments"},"review_comments":{"href":"https://api.github.com/repos/purposeindustries/intellyo-application-design-system/pulls/362/comments"},"review_comment":{"href":"https://api.github.com/repos/purposeindustries/intellyo-application-design-system/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/purposeindustries/intellyo-application-design-system/pulls/362/commits"},"statuses":{"href":"https://api.github.com/repos/purposeindustries/intellyo-application-design-system/statuses/0f03cab813d30b562df72654513258e18a637b92"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"oroce"}}