From 37dc13d7b42331e3fdecb2e6e88ce975cdf952c9 Mon Sep 17 00:00:00 2001 From: James Donnelly <4444684+JDIZM@users.noreply.github.com> Date: Sun, 28 Jul 2024 17:20:46 +0100 Subject: [PATCH] ci: update release workflow --- .github/workflows/release.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 49ca253..8ccd8e9 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -26,6 +26,13 @@ jobs: needs: test-and-build steps: - uses: actions/checkout@v4 + with: + # Fetch all history so we can switch back to the branch + fetch-depth: 0 + + - name: Switch to main branch + run: git checkout main + # Setup .npmrc file to publish to npm - uses: actions/setup-node@v4 with: