1
1
mirror of https://github.com/primer/css.git synced 2024-11-30 01:04:04 +03:00

fix path to script/notify

This commit is contained in:
Shawn Allen 2019-01-07 13:11:23 -08:00
parent 95307c6506
commit 2a15788fa9

View File

@ -2,8 +2,11 @@ const execa = require('execa')
const {writeFileSync} = require('fs')
const {join} = require('path')
const root = resolve(__dirname, '../../..')
const version = require('../package.json').version
const path = join(__dirname, '../../../primer-version.txt')
const path = join(root, 'primer-version.txt')
writeFileSync(path, version, 'utf8')
execa.sync('../../script/notify', ['success'], {stdio: 'inherit'})
const cwd = process.cwd()
execa.sync(join(root, 'script/notify'), ['success'], {cwd, stdio: 'inherit'})