From 2962965d99834be295cbb8dfe48c25a0b58aa173 Mon Sep 17 00:00:00 2001 From: Wayne Van Son Date: Wed, 23 Aug 2023 18:35:26 +1000 Subject: [PATCH] build: run version during hooks --- .github/workflows/release.yaml | 4 +--- packages/obsidian-mocks/release-it.js | 3 +++ 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 8743980..6e061c0 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -22,10 +22,8 @@ jobs: node-version: 18 cache: pnpm - run: pnpm install --frozen-lockfile - - run: pnpm turbo run build - - run: pnpm run version - name: Release env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} NPM_TOKEN: ${{ secrets.GITHUB_TOKEN }} - run: pnpm exec turbo deploy + run: pnpm exec turbo build deploy diff --git a/packages/obsidian-mocks/release-it.js b/packages/obsidian-mocks/release-it.js index 695a169..03ed74a 100644 --- a/packages/obsidian-mocks/release-it.js +++ b/packages/obsidian-mocks/release-it.js @@ -30,4 +30,7 @@ module.exports = { release: true, releaseName: `${packageName}-${version}`, }, + hooks: { + 'before:git:release': ['pnpm run version', 'git add --all'], + }, };