Skip to content

Commit

Permalink
Merge pull request #8 from harshavardhanc/master
Browse files Browse the repository at this point in the history
Isssue #00 fix: npm publish on pr merge
  • Loading branch information
amorphous-1 authored Jun 11, 2020
2 parents 0187585 + b10cb52 commit ca21954
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,17 @@ jobs:
- run: npm install -g @angular/cli
- run: npm install
- run: ng build
- run: npm pack ~/project/dist/chat-lib

- run:
name: Publish to NPM
command: |
if [ -z $CIRCLE_PR_NUMBER ]; then
npm set //registry.npmjs.org/:_authToken=$NPM_TOKEN
npm pack ~/project/dist/chat-lib
npm publish sunbird-chatbot-client-*
else
echo "Nothing to publish!"
fi
workflows:
version: 2.1
build_and_test:
Expand Down

0 comments on commit ca21954

Please sign in to comment.