Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,22 @@
version: 2.1
orbs:
pr-comment: benjlevesque/pr-comment@0.1.6
jobs:
build:
working_directory: ~/project
docker:
- image: circleci/node:12
steps:
- checkout
- pr-comment:
comment: Hello
- run: npm install

- run:
name: Publish to NPM
command: |
if [ -z $CIRCLE_PR_NUMBER ]; then
npm set //registry.npmjs.org/:_authToken=$NPM_TOKEN
npm publish ~/project
echo "Publish artifact"
else
echo "Nothing to publish!"
fi
Expand Down