diff --git a/.github/workflows/changesets.yml b/.github/workflows/changesets.yml index 0d83ca71d..369d52c1f 100644 --- a/.github/workflows/changesets.yml +++ b/.github/workflows/changesets.yml @@ -22,8 +22,6 @@ jobs: - name: Setup Node and pnpm uses: silverhand-io/actions-node-pnpm-run-steps@v2 - with: - node: 18 - name: Import GPG key uses: crazy-max/ghaction-import-gpg@v5 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 7f7d0005e..ae535df4a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -87,6 +87,11 @@ jobs: if: ${{ !startsWith(github.ref, 'refs/tags/') }} steps: + - uses: actions/checkout@v3 + with: + # Set Git operations with the bot PAT since we have tag protection rule + token: ${{ secrets.BOT_PAT }} + - name: Setup Node and pnpm uses: silverhand-io/actions-node-pnpm-run-steps@v2 @@ -99,6 +104,11 @@ jobs: git_commit_gpgsign: true git_tag_gpgsign: true + - name: Configure Git user + run: | + git config --global user.email bot@silverhand.io + git config --global user.name silverhand-bot + - name: Publish run: node .script/publish.js