Auto deploy

This commit is contained in:
2018-06-26 14:41:54 -04:00
parent 9b0a5adc94
commit 6e893aed6e
6 changed files with 701 additions and 420 deletions

View File

@ -22,22 +22,19 @@ jobs:
paths:
- node_modules
key: v1-dependencies-{{ checksum "package.json" }}
- run:
- run:
name: Build
command: yarn build-datatable
- save_cache:
paths:
- dist/ng-datatable
key: v1-dist-{{ .Environment.CIRCLE_BRANCH }}-{{ .Environment.CIRCLE_SHA1 }}
- run:
name: Publish
command: |
if ["${CIRCLE_BRANCH}" === "production"]; then
cp README.md dist/ng-datatable/
cp LICENSE dist/ng-datatable/
cd dist/ng-datatable
npm publish
yarn ci-publish
else
echo "Only the production branch is published"
fi