Skip to content

Commit

Permalink
switch to custom script for publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
clayallsopp committed Mar 9, 2016
1 parent 1f3b53b commit c17fffe
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 9 deletions.
15 changes: 7 additions & 8 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,26 +1,25 @@
language: node_js
node_js:
- '4.1'
env:
global:
- TWITTER_CONSUMER_KEY=dummy_consumer_key
- TWITTER_CONSUMER_SECRET=dummy_consumer_secret
- secure: Cjy2HxV1fCDJCm2OtvDh5TO6gkyxVcYlWbTPz903y2gBQOIICeH6Vw31/5xq84xsTncpDxBYBldggH7ijJkmLKKUuK5TYEioJTEE9YC6saZGbr85qL0GjGWjV84g9AQCaAqfnkA1OOU8lMv1e89NsB0zsOWs3TDN2EI0VN8MMMmqGfTWJ2q9rrMUK5bci7uigkW0fms7ygqUCbkgXfuoqSQVMMTmeGESltLXrGZKjlMazz68rNcSga4zu6arqHTkIoHkZhT86/VENz0x4DSWh0hqhT16X8JgGSXWFs8zMSIs43bVv6PcNkygggOEjbKCUoKU19e+eqiiZ8yXfGIOz6g5gQ/dzpm9H8CJEE1vJ7wfwuzcv6Qm09cEN6TCgESG5eh4kXAuxwgig3yydwRn+bCK0TJzEoqRkuqFyRC7XtSAV18Z/5aFoosQWL2tEETIuN9+cHmLP0wgKtBjp+efpGt2Z3iV5xk2bAKMFGVn25yoNcEWnNJvwfo0B8UomQubznZL9dQUXdAHuWROeoqcTXJqw+j1XSvGLYKexg+OW2YQcBrSy1fK+uuso8NvrcUq8RbRhnIgEj1oXkHLdH5VK0/yU0tTZTiwyJDufDi3yhuuNpJv/Yp6ElU89zECe8VfXZ67JzMAQueX76HIQSzHih+OVMEvHA1NujXdIZxfl7Q=
before_install:
- npm install -g [email protected]
install:
- npm install
- cd ./graphqlhub-schemas && npm install && cd ..
before_deploy:
- ./scripts/try-npm-publish.sh
deploy:
- provider: heroku
api_key:
secure: szhg+pTuFpxSAZEt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8Cu8b0JXJQbVoKcE2mPypXXhDc/r7ktSC6XrYBPMMuz3xdcvjXrdfGracOSoq2mOnPBAG3IJeoWBSN2CNYOp8ofVn3FXEM+4WWGh5eBqJtERvf7GhuYUyp55Ri+aIzKGm+IoKi34nZFikSQ4t3GddHZGORNP5KXeMmCy+2uHMxtse+tMnCQ6CEyP4DOIDjkHoPyiwB1ckn7gsxxapUgix2e6QbqRY+M63gR81zlUM2XeTpzvAexuEBaeYtOfBA20+g4u/2x8b9gOBoJm0/BuGGwI07KrulfussW6tC/G4u6iAx5mAVmLaWMwVFmdk2F8nYjl5ScaMWamapb7fA=
- provider: script
email: scripts/publish-npm.sh
on:
tags: true
repo: clayallsopp/graphqlhub
env:
- TWITTER_CONSUMER_KEY=dummy_consumer_key TWITTER_CONSUMER_SECRET=dummy_consumer_secret
2 changes: 1 addition & 1 deletion graphqlhub-schemas/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "graphqlhub-schemas",
"repository": "clayallsopp/graphqlhub",
"version": "0.1.0-rc2",
"version": "0.1.0-rc3",
"description": "GraphQL Schemas for REST APIs like Github, Hacker News, Reddit, and Twitter",
"main": "lib/index.js",
"scripts": {
Expand Down
11 changes: 11 additions & 0 deletions scripts/publish-npm.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/bash

set -e

REGISTRY='registry.npmjs.org'

touch ~/.npmrc
echo "//$REGISTRY/:_authToken=${NPM_API_KEY}" > ~/.npmrc
cd ./graphqlhub-schemas
npm publish
rm ~/.npmrc

0 comments on commit c17fffe

Please sign in to comment.