Skip to content

Commit f1520f3

Browse files
authored
ci(deploy): add deploy workflow (#15)
* ci(deploy): add deploy workflow
1 parent fe47458 commit f1520f3

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

.circleci/config.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,25 @@
44
#
55
version: 2
66
jobs:
7+
deploy:
8+
docker:
9+
# specify the version you desire here
10+
- image: circleci/node:8.11.2
11+
12+
# Specify service dependencies here if necessary
13+
# CircleCI maintains a library of pre-built images
14+
# documented at https://circleci.com/docs/2.0/circleci-images/
15+
# - image: circleci/mongo:3.4.4
16+
working_directory: ~/repo
17+
steps:
18+
- attach_workspace:
19+
at: ~/repo
20+
- run:
21+
name: Authenticate with registry
22+
command: echo "//registry.npmjs.org/:_authToken=$npm_TOKEN" > ~/repo/.npmrc
23+
- run:
24+
name: Publish package
25+
command: npm publish
726
build:
827
docker:
928
# specify the version you desire here

0 commit comments

Comments
 (0)