release-me-sh 0.11.2 → 0.11.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/plugins/git.sh +6 -6
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "release-me-sh",
3
- "version": "0.11.2",
3
+ "version": "0.11.3",
4
4
  "description": "Blazing fast minimal release workflow script written in Bash with plugins and presets support",
5
5
  "keywords": [
6
6
  "bash",
package/plugins/git.sh CHANGED
@@ -34,12 +34,6 @@ prepare() {
34
34
  SSH_PUBLIC_KEY_FILE=$(mktemp)
35
35
  printf "%s" "${SSH_PUBLIC_KEY}" >>"${SSH_PUBLIC_KEY_FILE}"
36
36
 
37
- git config --local commit.gpgsign true
38
- git config --local user.signingkey "${SSH_PUBLIC_KEY_FILE}"
39
- git config --local tag.forceSignAnnotated true
40
- git config --local gpg.format ssh
41
- log_verbose "Git SSH sign key is set"
42
-
43
37
  if [ -n "${SSH_KEY_PASSPHRASE-}" ]; then
44
38
  SSH_ASKPASS_FILE=$(mktemp)
45
39
  chmod 0755 "${SSH_ASKPASS_FILE}"
@@ -57,6 +51,12 @@ prepare() {
57
51
  log_verbose "Git SSH key import skipped"
58
52
  fi
59
53
 
54
+ git config --local commit.gpgsign true
55
+ git config --local user.signingkey "${SSH_PUBLIC_KEY_FILE}"
56
+ git config --local tag.forceSignAnnotated true
57
+ git config --local gpg.format ssh
58
+ log_verbose "Git SSH sign key is set"
59
+
60
60
  if [ -n "${SSH_KEY_PASSPHRASE-}" ]; then
61
61
  rm -rf "${SSH_ASKPASS}"
62
62
  unset SSH_ASKPASS