Skip to content

Commit

Permalink
Move doc update to post publish to fix travis
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacs committed May 22, 2019
1 parent b3b1a6b commit 62001da
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,4 @@
!.gitignore
!.gitattributes
!coverage-map.js
!postpublish.sh
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,7 @@
"t": "node bin/run.js test -J -sfails.txt",
"preversion": "npm test",
"postversion": "npm publish",
"prepublish": "node docs/cli/index.template.js && git add docs/cli && git commit -m 'update cli doc'",
"postpublish": "git push origin --follow-tags"
"postpublish": "bash postpublish.sh"
},
"tap": {
"esm": false,
Expand Down
7 changes: 7 additions & 0 deletions postpublish.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/usr/bin/env bash
set -e
set -x
node docs/cli/index.template.js
git add docs/cli
git commit -m 'update cli doc'
git push origin --follow-tags"

0 comments on commit 62001da

Please sign in to comment.