From d9c365a1f9f82fa89345de7c29b1c87cc5d6e8a7 Mon Sep 17 00:00:00 2001 From: Shawn Allen Date: Fri, 4 Jan 2019 15:18:57 -0800 Subject: [PATCH] write primer-version.txt instead of VERSION (because Lerna) --- modules/primer/scripts/postpublish.js | 2 +- script/deploy-docs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/primer/scripts/postpublish.js b/modules/primer/scripts/postpublish.js index b8e9b7af..092ab475 100644 --- a/modules/primer/scripts/postpublish.js +++ b/modules/primer/scripts/postpublish.js @@ -2,5 +2,5 @@ const fs = require('fs') const {join} = require('path') const version = require('../package.json').version -const path = join(__dirname, '../../../VERSION') +const path = join(__dirname, '../../../primer-version.txt') fs.writeFileSync(path, version, 'utf8') diff --git a/script/deploy-docs b/script/deploy-docs index b71bb706..1237f75a 100755 --- a/script/deploy-docs +++ b/script/deploy-docs @@ -4,8 +4,8 @@ set -e if [ -z "$NOW_TOKEN" ]; then echo "NOW_TOKEN is not set; skipping docs deployment" else - if [[ -e VERSION ]]; then - version=$(cat VERSION) + if [[ -e primer-version.txt ]]; then + version=$(cat primer-version.txt) else version=$(jq -r .version modules/primer/package.json) fi