diff --git a/scripts/release-plz.sh b/scripts/release-plz.sh index ec1ddca..503ac0a 100755 --- a/scripts/release-plz.sh +++ b/scripts/release-plz.sh @@ -47,6 +47,11 @@ if [ -n "$latest_release_version" ] && [ "$cur_pkg_version" = "$latest_release_v git config user.name mise-en-dev git config user.email 123107610+mise-en-dev@users.noreply.github.com + # Configure git to use gh's credential helper. The checkout step uses + # persist-credentials: false (per zizmor's artipacked audit), so the + # token isn't written to .git/config and raw `git push` would 403. + gh auth setup-git + # Create a PR with the version bump npm version "${version#v}" --no-git-tag-version