message: chore: move delete branch to the last step
diff: @@ -38,12 +38,6 @@ jobs:
  env:
  GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
  NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
  - - name: Delete PR head branch
  - uses: dawidd6/action-delete-branch@master
  - with:
  - github_token: ${{ secrets.GITHUB_TOKEN }}
  - branch: ${{ github.pull_request.head.ref }}
  - be_kind: true # don't fail on errors (optional)
  - name: Publish Tag
  run: |
  echo "console.log(JSON.parse(require('fs').readFileSync('packages/launcher-core/package.json').toString()).version)" > log-tag.js
  @@ -55,3 +49,9 @@ jobs:
  git push origin tag @xmcl/minecraft-launcher-core@$(cat tag.log) -f
  env:
  GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
  + - name: Delete PR head branch
  + uses: dawidd6/action-delete-branch@master
  + with:
  + github_token: ${{ secrets.GITHUB_TOKEN }}
  + branch: ${{ github.pull_request.head.ref }}
  + be_kind: true # don't fail on errors (optional)
  