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: