Skip to content

Commit 197c2a8

Browse files
jkillianadidahiya
authored andcommitted
CircleCI deployment (palantir#1230)
1 parent be63836 commit 197c2a8

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

circle.yml

+11
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
general:
2+
branches:
3+
ignore:
4+
- gh-pages
15
dependencies:
26
pre:
37
- case $CIRCLE_NODE_INDEX in 0) nvm use 0.10 ;; 1) nvm use 0.12 ;; 2) nvm use 4.2 ;; 3) nvm use 5.5 ;; esac
8+
deployment:
9+
npm:
10+
# match semver tag with optional dev prerelease tag (e.g. 3.12.7 or 3.12.7-dev.2)
11+
tag: /\d\d?\.\d\d?\.\d\d?(-dev\.\d\d?)?/
12+
owner: palantir
13+
commands:
14+
- ./scripts/npmPublish.sh

scripts/npmPublish.sh

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/usr/bin/env bash
2+
3+
cd $(dirname $0)/..
4+
set -e
5+
6+
echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > .npmrc
7+
chmod 0600 .npmrc
8+
9+
echo "Publishing..."
10+
npm publish

0 commit comments

Comments
 (0)