Skip to content
This repository was archived by the owner on Mar 6, 2020. It is now read-only.

Commit 8410b0f

Browse files
committed
🛠 Use yarn & git directly for yarn ship
- np causes too many problems, this is much simpler - use preship to build and run tests before attempting to ship - if build causes files to need committing, git status porcelain will flag this
1 parent 23bbc2b commit 8410b0f

File tree

2 files changed

+17
-827
lines changed

2 files changed

+17
-827
lines changed

Diff for: package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
"lint": "eslint lib test/*_spec.js",
99
"test": "yarn build && yarn lint && NODE_ENV=testing mocha -- $(find test -name '*_spec.js')",
1010
"coverage": "NODE_ENV=testing istanbul cover --dir test/coverage _mocha -- $(find test -name '*._spec.js')",
11-
"ship": "np"
11+
"preship": "yarn test",
12+
"ship": "STATUS=$(git status --porcelain); echo $STATUS; if [ -z \"$STATUS\" ]; then yarn publish && git push --follow-tags; fi"
1213
},
1314
"author": "Ghost Foundation",
1415
"homepage": "http://ghost.org",
@@ -35,7 +36,6 @@
3536
"jison": "0.4.18",
3637
"knex": "0.8.6",
3738
"mocha": "4.0.1",
38-
"np": "2.19.0",
3939
"should": "13.1.0",
4040
"sinon": "4.0.1"
4141
}

0 commit comments

Comments
 (0)