1
1
mirror of https://github.com/primer/css.git synced 2024-12-28 00:24:36 +03:00

write primer-version.txt instead of VERSION (because Lerna)

This commit is contained in:
Shawn Allen 2019-01-04 15:18:57 -08:00
parent a5c1364f5b
commit d9c365a1f9
2 changed files with 3 additions and 3 deletions

View File

@ -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')

View File

@ -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