Skip to content

Commit 51dbcb9

Browse files
authored
Merge pull request #9 from Shopify/publish-with-shipit
Add scripts to quietly publish with shipit
2 parents 2c808cf + a30c209 commit 51dbcb9

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@
2727
"test": "yarn run lint-allow-warning && mocha --compilers js:babel-register -u tdd test/index.js",
2828
"prepublish": "babel -d lib/ src/",
2929
"lint": "eslint --max-warnings 0 -c .eslintrc.json src/ test/",
30-
"lint-allow-warning": "eslint -c .eslintrc.json src/ test/"
30+
"lint-allow-warning": "eslint -c .eslintrc.json src/ test/",
31+
"echo-version": ">&2 node -e \"process.stdout.write(require('./package.json').version)\""
3132
},
3233
"keywords": [
3334
"graphql,schema"

shipit.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
deploy:
2+
override:
3+
- rm -rf node_modules
4+
- yarn install
5+
- yarn run test
6+
- yarn run prepublish
7+
- yarn publish --new-version $(yarn run echo-version 2>&1 >/dev/null)

0 commit comments

Comments
 (0)