From b944d89ad015dcd108d4d1229b758b076bc37a7b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Kuli=C5=84ski?= <25184202+rkulinski@users.noreply.github.com> Date: Fri, 24 Nov 2023 10:23:18 +0100 Subject: [PATCH] fix: release test (#77) --- packages/react-ranger/src/index.tsx | 2 +- scripts/publish.ts | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/packages/react-ranger/src/index.tsx b/packages/react-ranger/src/index.tsx index 2f8ec6a..8fb069c 100644 --- a/packages/react-ranger/src/index.tsx +++ b/packages/react-ranger/src/index.tsx @@ -12,7 +12,7 @@ export function useRanger( const rerender = React.useReducer(() => ({}), {})[1] const resolvedOptions: RangerConfig = { ...options, - rerender: rerender, + rerender, onChange: (instance) => { rerender() options.onChange?.(instance) diff --git a/scripts/publish.ts b/scripts/publish.ts index f52bc6e..93968f8 100644 --- a/scripts/publish.ts +++ b/scripts/publish.ts @@ -583,8 +583,7 @@ async function run() { console.info(` Github release created.`) console.info(`Committing changes...`) - execSync('git add -A ') - execSync(`git commit --verbose -m "${releaseCommitMsg(version)}"`, { encoding: 'utf8' }) + execSync(`git add -A && git commit --verbose -m "${releaseCommitMsg(version)}"`, { encoding: 'utf8' }) console.info() console.info(` Committed Changes.`)