From 3a11965a585493138be913cd7fe20d018d6d5349 Mon Sep 17 00:00:00 2001 From: Brandon Roberts Date: Wed, 26 Apr 2017 22:54:44 -0500 Subject: [PATCH] chore(build): Read commit message from file --- build/tasks.ts | 5 ++--- circle.yml | 1 - 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/build/tasks.ts b/build/tasks.ts index c7a6092010..b039139c7f 100644 --- a/build/tasks.ts +++ b/build/tasks.ts @@ -208,7 +208,6 @@ export async function publishToRepo(config: Config) { const REPO_DIR = `./tmp/${pkg}`; const SHA = await util.git([`rev-parse HEAD`]); const SHORT_SHA = await util.git([`rev-parse --short HEAD`]); - const COMMIT_MSG = await util.git([`log --oneline -1`]); const COMMITTER_USER_NAME = await util.git([`--no-pager show -s --format='%cN' HEAD`]); const COMMITTER_USER_EMAIL = await util.git([`--no-pager show -s --format='%cE' HEAD`]); @@ -222,14 +221,14 @@ export async function publishToRepo(config: Config) { await util.git(['checkout -b master']); await process.chdir('../../'); await util.cmd('rm -rf', [`${REPO_DIR}/*`]); + await util.git([`log --format="%h %s%n" -n 1 > ${REPO_DIR}/commit_message`]); await util.cmd('cp', [`-R ${SOURCE_DIR}/* ${REPO_DIR}/`]); await process.chdir(`${REPO_DIR}`); await util.git([`config user.name "${COMMITTER_USER_NAME}"`]); await util.git([`config user.email "${COMMITTER_USER_EMAIL}"`]); await util.git(['add --all']); - await util.cmd('echo', [`"${COMMIT_MSG.replace(/\r?\n|\r/g, '')}" > commit_message`]); await util.git([`commit -F commit_message`]); - await util.git(['push origin master --force']); + //await util.git(['push origin master --force']); await process.chdir('../../'); } } diff --git a/circle.yml b/circle.yml index 04e46274fe..4295f1fe14 100644 --- a/circle.yml +++ b/circle.yml @@ -9,6 +9,5 @@ test: deployment: builds: owner: ngrx - branch: master commands: - yarn run deploy:builds