diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d41c368..e51d21e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -49,6 +49,7 @@ jobs: uses: actions/checkout@v6 with: fetch-depth: 0 + ref: main token: ${{ secrets.GITHUB_TOKEN }} - name: Setup Node.js @@ -93,7 +94,7 @@ jobs: - name: Push commit and tags if: ${{ !inputs.dry_run }} run: | - git push origin HEAD + git push origin HEAD:main git push --tags - name: Get latest tag