Closed opichon closed 1 year ago
The bug is fixed if we modify the shipjs-trigger workflow as follows:
...
- run: |
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git config --global user.name "github-actions[bot]"
- run: npx shipjs trigger
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
SLACK_INCOMING_HOOK: ${{ secrets.SLACK_INCOMING_HOOK }}
Since 0.25.1, we write annotated tags, which indeed require git credentials to write. The documentation has been updated, but sorry for the inconvenience. I'll update the changelog to make it clearer these credentials are needed.
Describe the bug Ship.js trigger action fails to create a tag after publishing the packages. The actions generate the following error message:
To Reproduce Steps to reproduce the behavior:
Expected behavior After publishing the packages, shipjs should create a tag in the repo.
Additional context This behavior started after upgrading to the latest release of shipjs v0.25.1. I wonder if the github workflow has changed with that release. Bizarrely, I don't see a 0.25.1 release in the github repo. The latest release documented here is v0.25.0.
I am using pnpm, so the shipjs-trigger workflow is slightly modified from your original, but I don't see that the changes are relevant here: