From 6ec867de92f69b79f55e1c705f9a616496f8000f Mon Sep 17 00:00:00 2001 From: Steve Dodier-Lazaro Date: Wed, 30 Oct 2024 14:20:53 +0100 Subject: [PATCH] fix(release): Handle precondition edge cases resulting in broken NPM packages --- .github/workflows/semantic-release.yml | 5 ++++- package.json | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/semantic-release.yml b/.github/workflows/semantic-release.yml index 6d90ef2..f5dfb81 100644 --- a/.github/workflows/semantic-release.yml +++ b/.github/workflows/semantic-release.yml @@ -32,6 +32,9 @@ jobs: - name: Install dependencies run: pnpm install + - name: Build everything + run: pnpm build + - name: Semantic Release env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} @@ -40,4 +43,4 @@ jobs: GIT_AUTHOR_EMAIL: 'github-actions[bot]@users.noreply.github.com' GIT_COMMITTER_NAME: 'github-actions-shell' GIT_COMMITTER_EMAIL: 'github-actions[bot]@users.noreply.github.com' - run: 'pnpm exec multi-semantic-release' + run: 'pnpm release' diff --git a/package.json b/package.json index 5661ecc..c96abdd 100644 --- a/package.json +++ b/package.json @@ -35,6 +35,7 @@ "lint:staged": "turbo run lint:staged --filter=[HEAD^1]", "prepare": "husky", "prerelease": "turbo run build", + "prerelease:dry": "turbo run build", "release": "multi-semantic-release", "release:dry": "multi-semantic-release --dryRun --no-ci", "test": "turbo run test",