diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index a89dfcc..b1a20e3 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -29,7 +29,9 @@ jobs: run: jest --coverage - name: Reset repository + id: reset_repo run: git reset --hard HEAD - name: Publish package - run: npx jsr publish \ No newline at end of file + run: npx jsr publish + if: ${{ steps.reset_repo.outcome == 'success' }} \ No newline at end of file