diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index a9e733a94d..63b7c65f3e 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -35,7 +35,7 @@ jobs: - uses: actions/checkout@v4 with: persist-credentials: false - fetch-depth: ${{ github.event_name == 'push' && 0 || 1 }} + fetch-depth: ${{ github.event_name == 'release' && 1 || 0 }} - name: Install Node.js 💻 uses: actions/setup-node@v4