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:
parent
a5c1364f5b
commit
d9c365a1f9
@ -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')
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user