release-me-sh 0.11.4 → 0.11.5
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.
- package/package.json +1 -1
- package/plugins/git.sh +9 -2
- package/plugins/npm-post.sh +9 -2
package/package.json
CHANGED
package/plugins/git.sh
CHANGED
|
@@ -33,6 +33,7 @@ prepare() {
|
|
|
33
33
|
|
|
34
34
|
SSH_PUBLIC_KEY_FILE=$(mktemp)
|
|
35
35
|
printf "%s" "${SSH_PUBLIC_KEY}" >>"${SSH_PUBLIC_KEY_FILE}"
|
|
36
|
+
export SSH_PUBLIC_KEY_FILE
|
|
36
37
|
|
|
37
38
|
if [ -n "${SSH_KEY_PASSPHRASE-}" ]; then
|
|
38
39
|
SSH_ASKPASS_FILE=$(mktemp)
|
|
@@ -86,13 +87,19 @@ cleanup() {
|
|
|
86
87
|
fi
|
|
87
88
|
|
|
88
89
|
log_verbose "Git GPG config cleanup"
|
|
89
|
-
elif [ -z "${SSH_NO_SIGN-}" ] && [ -n "${SSH_PUBLIC_KEY-}" ]; then
|
|
90
|
+
elif [ -z "${SSH_NO_SIGN-}" ] && [ -n "${SSH_PRIVATE_KEY-}" ] && [ -n "${SSH_PUBLIC_KEY-}" ]; then
|
|
90
91
|
git config --local --unset commit.gpgsign true
|
|
91
|
-
git config --local --unset user.signingkey "${
|
|
92
|
+
git config --local --unset user.signingkey "${SSH_PUBLIC_KEY_FILE}"
|
|
92
93
|
git config --local --unset tag.forceSignAnnotated true
|
|
93
94
|
git config --local --unset gpg.format ssh
|
|
94
95
|
|
|
95
96
|
ssh-add -L | grep -F "${SSH_PUBLIC_KEY-}" | ssh-add -d -
|
|
97
|
+
rm -rf "${SSH_PUBLIC_KEY_FILE}"
|
|
98
|
+
|
|
99
|
+
unset SSH_PUBLIC_KEY_FILE
|
|
100
|
+
unset SSH_PRIVATE_KEY
|
|
101
|
+
unset SSH_PUBLIC_KEY
|
|
102
|
+
|
|
96
103
|
log_verbose "Git SSH sign is unset"
|
|
97
104
|
fi
|
|
98
105
|
|
package/plugins/npm-post.sh
CHANGED
|
@@ -33,6 +33,7 @@ prepare() {
|
|
|
33
33
|
|
|
34
34
|
SSH_PUBLIC_KEY_FILE=$(mktemp)
|
|
35
35
|
printf "%s" "${SSH_PUBLIC_KEY}" >>"${SSH_PUBLIC_KEY_FILE}"
|
|
36
|
+
export SSH_PUBLIC_KEY_FILE
|
|
36
37
|
|
|
37
38
|
if [ -n "${SSH_KEY_PASSPHRASE-}" ]; then
|
|
38
39
|
SSH_ASKPASS_FILE=$(mktemp)
|
|
@@ -86,13 +87,19 @@ cleanup() {
|
|
|
86
87
|
fi
|
|
87
88
|
|
|
88
89
|
log_verbose "Git GPG config cleanup"
|
|
89
|
-
elif [ -z "${SSH_NO_SIGN-}" ] && [ -n "${SSH_PUBLIC_KEY-}" ]; then
|
|
90
|
+
elif [ -z "${SSH_NO_SIGN-}" ] && [ -n "${SSH_PRIVATE_KEY-}" ] && [ -n "${SSH_PUBLIC_KEY-}" ]; then
|
|
90
91
|
git config --local --unset commit.gpgsign true
|
|
91
|
-
git config --local --unset user.signingkey "${
|
|
92
|
+
git config --local --unset user.signingkey "${SSH_PUBLIC_KEY_FILE}"
|
|
92
93
|
git config --local --unset tag.forceSignAnnotated true
|
|
93
94
|
git config --local --unset gpg.format ssh
|
|
94
95
|
|
|
95
96
|
ssh-add -L | grep -F "${SSH_PUBLIC_KEY-}" | ssh-add -d -
|
|
97
|
+
rm -rf "${SSH_PUBLIC_KEY_FILE}"
|
|
98
|
+
|
|
99
|
+
unset SSH_PUBLIC_KEY_FILE
|
|
100
|
+
unset SSH_PRIVATE_KEY
|
|
101
|
+
unset SSH_PUBLIC_KEY
|
|
102
|
+
|
|
96
103
|
log_verbose "Git SSH sign is unset"
|
|
97
104
|
fi
|
|
98
105
|
|