AlCalzone / release-script

Painless release management for Node.js projects
MIT License
14 stars 10 forks source link

Handle git errors #162

Open klein0r opened 5 months ago

klein0r commented 5 months ago

Errors should rollback the git changes

commit:manual-review Please review the changes and correct them manually if necessary.
✔ Are you done? · yes
commit:package updating lockfile...
commit:git Commit message: chore: release v1.0.0
commit:git $ git add -A -- :(exclude).commitmessage
commit:git $ git commit -F .commitmessage
commit:git $ git tag -a v1.0.0 -m v1.0.0

push:git $ git push
push:git [FATAL] Error: Command failed with exit code 128: git push
git@github.com: Permission denied (publickey).
Schwerwiegend: Konnte nicht vom Remote-Repository lesen.

Bitte stellen Sie sicher, dass die korrekten Zugriffsberechtigungen bestehen
und das Repository existiert.
    at makeError (/home/mkleine/ioBroker.awtrix-light/node_modules/execa/lib/error.js:60:11)
    at handlePromise (/home/mkleine/ioBroker.awtrix-light/node_modules/execa/index.js:118:26)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async GitPlugin.executePushStage (/home/mkleine/ioBroker.awtrix-light/node_modules/@alcalzone/release-script-plugin-git/build/index.js:177:17)
    at async GitPlugin.executeStage (/home/mkleine/ioBroker.awtrix-light/node_modules/@alcalzone/release-script-plugin-git/build/index.js:207:13)
    at async execute (/home/mkleine/ioBroker.awtrix-light/node_modules/@alcalzone/release-script-core/build/lib/planner.js:162:13)
    at async main (/home/mkleine/ioBroker.awtrix-light/node_modules/@alcalzone/release-script/build/index.js:259:9)