@cornerstonejs/nifti-image-loader
Version:
Cornerstone ImageLoader for NIfTI
67 lines (60 loc) • 1.47 kB
YAML
version: 2
defaults:
working_directory: ~/repo
docker:
- image: circleci/node:latest
jobs:
test:
<<:
steps:
- checkout
- restore_cache:
keys:
- v1-dependencies-{{ checksum "package.json" }}
- v1-dependencies-
- run: npm install
- run: npm run start
- save_cache:
paths:
- node_modules
key: v1-dependencies-{{ checksum "package.json" }}
# TODO: Support for unit tests in status check
# - run: npm run test
# Publish latest
deploy:
<<:
steps:
- checkout
- restore_cache:
keys:
- v1-dependencies-{{ checksum "package.json" }}
- v1-dependencies-
- run: npm install
- save_cache:
paths:
- node_modules
key: v1-dependencies-{{ checksum "package.json" }}
- run: npm run start
- run:
name: Write NPM Token to ~/.npmrc
command: echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > ~/repo/.npmrc
- run:
name: Publish package
command: npx semantic-release@17.0.4
workflows:
version: 2
# PULL REQUEST
test:
jobs:
- test:
filters:
branches:
ignore:
- master
# MERGE TO MASTER
build-test-deploy:
jobs:
- deploy:
filters:
branches:
only: master