-
Notifications
You must be signed in to change notification settings - Fork 82
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #25 from dannyrb/ci/semantic-release
ci: semantic-release
- Loading branch information
Showing
6 changed files
with
271 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,91 @@ | ||
# Use the latest 2.1 version of CircleCI pipeline processing engine, see https://circleci.com/docs/2.0/configuration-reference/ | ||
version: 2.1 | ||
|
||
defaults: &defaults | ||
working_directory: ~/repo | ||
# https://circleci.com/docs/2.0/circleci-images/#language-image-variants | ||
docker: | ||
- image: circleci/node:10.15.1 | ||
environment: | ||
TERM: xterm # Enable colors in term | ||
|
||
jobs: | ||
CHECKOUT: | ||
<<: *defaults | ||
steps: | ||
- checkout | ||
- restore_cache: | ||
name: Restore Package Cache | ||
keys: | ||
- packages-v1-{{ .Branch }}-{{ checksum "yarn.lock" }} | ||
- packages-v1-{{ .Branch }}- | ||
- packages-v1- | ||
- run: yarn install | ||
- save_cache: | ||
name: Save Package Cache | ||
paths: | ||
- ~/.cache/yarn | ||
key: packages-v1-{{ .Branch }}-{{ checksum "yarn.lock" }} | ||
- persist_to_workspace: | ||
root: ~/repo | ||
paths: . | ||
|
||
BUILD: | ||
<<: *defaults | ||
steps: | ||
- attach_workspace: | ||
at: ~/repo | ||
- run: npm run build:release | ||
# https://circleci.com/docs/2.0/collect-test-data/#karma | ||
# - store_test_results: | ||
# path: reports/junit | ||
# - store_artifacts: | ||
# path: reports/junit | ||
- persist_to_workspace: | ||
root: ~/repo | ||
paths: . | ||
|
||
NPM_PUBLISH: | ||
<<: *defaults | ||
steps: | ||
- attach_workspace: | ||
at: ~/repo | ||
- run: | ||
name: Avoid hosts unknown for github | ||
command: | ||
mkdir ~/.ssh/ && echo -e "Host github.com\n\tStrictHostKeyChecking | ||
no\n" > ~/.ssh/config | ||
- run: | ||
name: Publish using Semantic Release | ||
command: npx semantic-release | ||
|
||
workflows: | ||
version: 2 | ||
|
||
# PULL REQUEST | ||
PULL_REQUEST: | ||
jobs: | ||
- CHECKOUT: | ||
filters: | ||
branches: | ||
ignore: | ||
- master | ||
- feature/* | ||
- hotfix/* | ||
- BUILD: | ||
requires: | ||
- CHECKOUT | ||
|
||
# MERGE TO MASTER | ||
TEST_AND_RELEASE: | ||
jobs: | ||
- CHECKOUT: | ||
filters: | ||
branches: | ||
only: master | ||
- BUILD: | ||
requires: | ||
- CHECKOUT | ||
- NPM_PUBLISH: | ||
requires: | ||
- BUILD |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,3 +13,8 @@ npm install --save react-vtkjs-viewport | |
## License | ||
|
||
MIT © [OHIF](https://github.com/OHIF) | ||
|
||
|
||
<!-- | ||
Links | ||
--> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8690,10 +8690,10 @@ react-app-polyfill@^1.0.1: | |
regenerator-runtime "0.13.2" | ||
whatwg-fetch "3.0.0" | ||
|
||
[email protected].2: | ||
version "0.2.2" | ||
resolved "https://registry.yarnpkg.com/react-cornerstone-viewport/-/react-cornerstone-viewport-0.2.2.tgz#5860e35c48927d66839f66b59944442b8f6b5f67" | ||
integrity sha512-NdfV3ZAxYJ6PhqO/NETWNWJ7WiV/jOCS0WkfMaA3FC2ySKXg/mtvQbwsDFKV6p+Y2/u5WANpgq13Gn++JhIHYA== | ||
react-cornerstone-viewport@^0.2.4: | ||
version "0.2.4" | ||
resolved "https://registry.yarnpkg.com/react-cornerstone-viewport/-/react-cornerstone-viewport-0.2.4.tgz#d553c97482e0286e0c7c3cd38595905932410791" | ||
integrity sha512-PKDQZRJL94qKO6MVdxVf1c4xhs68FWhECYxftSHY83uAWn7yvSkVr+UtctX/6uKeE4T7FDn33QBji1ceTa+Hnw== | ||
dependencies: | ||
lodash.debounce "^4.0.8" | ||
moment "^2.23.0" | ||
|
@@ -8789,9 +8789,10 @@ [email protected]: | |
tiny-invariant "^1.0.2" | ||
tiny-warning "^1.0.0" | ||
|
||
"react-vtkjs-viewport@link:..": | ||
version "0.0.0" | ||
uid "" | ||
"react-vtkjs-viewport@file:..": | ||
version "0.0.12" | ||
dependencies: | ||
moment "^2.24.0" | ||
|
||
react@^16.8.6: | ||
version "16.8.6" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.