Skip to content

Commit

Permalink
CircleCI deployment (palantir#1230)
Browse files Browse the repository at this point in the history
  • Loading branch information
jkillian authored and adidahiya committed May 9, 2016
1 parent be63836 commit 197c2a8
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
11 changes: 11 additions & 0 deletions circle.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
general:
branches:
ignore:
- gh-pages
dependencies:
pre:
- 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
deployment:
npm:
# match semver tag with optional dev prerelease tag (e.g. 3.12.7 or 3.12.7-dev.2)
tag: /\d\d?\.\d\d?\.\d\d?(-dev\.\d\d?)?/
owner: palantir
commands:
- ./scripts/npmPublish.sh
10 changes: 10 additions & 0 deletions scripts/npmPublish.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/usr/bin/env bash

cd $(dirname $0)/..
set -e

echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > .npmrc
chmod 0600 .npmrc

echo "Publishing..."
npm publish

0 comments on commit 197c2a8

Please sign in to comment.