diff --git a/.circleci/config.yml b/.circleci/config.yml index cdc5465..d50fa5c 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -27,6 +27,12 @@ jobs: name: Build command: yarn build-datatable + - run: + name: Copy README and LICENSE + command: | + cp LICENSE dist/ng-datatable/ + cp README.md dist/ng-datatable/ + - store_artifacts: path: dist/ng-datatable @@ -34,9 +40,6 @@ jobs: command: | echo "${CIRCLE_BRANCH}" if [ "${CIRCLE_BRANCH}" == "production" ]; then - cp README.md dist/ng-datatable/ - cp LICENSE dist/ng-datatable/ - cd dist/ng-datatable yarn ci-publish else echo "Only the production branch is published" diff --git a/package.json b/package.json index 4e9b410..857afa9 100644 --- a/package.json +++ b/package.json @@ -6,6 +6,7 @@ "start": "ng serve", "build": "ng build", "build-datatable": "ng build ng-datatable --prod", + "ci-publish": "cd dist/ng-datatable && ci-publish", "test": "ng test", "lint": "ng lint", "e2e": "ng e2e"