Skip to content

Commit 14658e4

Browse files
committed
fix(docs): Fix version fetching in docs publishing script
1 parent 04d98fb commit 14658e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/publish-docs.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ set -e
55
PAGES_DIR=./gh-pages
66
DOCS_DIR=./out
77
REPO="https://${GH_TOKEN}@github.com/contentful/contentful.js.git"
8-
VERSION=`cat package.json|grep version|sed -e 's/.*version": "//g'|sed -e 's/",.*//g'`
8+
VERSION=`cat package.json|json version`
99

1010
echo "Publishing docs"
1111

0 commit comments

Comments
 (0)