From 95307c6506e15e9d720cf7775573e2c71b2e9259 Mon Sep 17 00:00:00 2001 From: Shawn Allen Date: Mon, 7 Jan 2019 12:58:58 -0800 Subject: [PATCH] notify post-publish in primer --- modules/primer/scripts/postpublish.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/modules/primer/scripts/postpublish.js b/modules/primer/scripts/postpublish.js index 092ab475..496ec819 100644 --- a/modules/primer/scripts/postpublish.js +++ b/modules/primer/scripts/postpublish.js @@ -1,6 +1,9 @@ -const fs = require('fs') +const execa = require('execa') +const {writeFileSync} = require('fs') const {join} = require('path') const version = require('../package.json').version const path = join(__dirname, '../../../primer-version.txt') -fs.writeFileSync(path, version, 'utf8') +writeFileSync(path, version, 'utf8') + +execa.sync('../../script/notify', ['success'], {stdio: 'inherit'})