@decaf-ts/utils 0.3.7 → 0.3.8

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.
@@ -52,7 +52,7 @@ if [[ $# -ne 0 ]];then
52
52
  MESSAGE="$*"
53
53
  fi
54
54
 
55
- echo "Preparing Release... "
55
+ echo "Preparing release prerequisites..."
56
56
  npm run prepare-release
57
57
 
58
58
  if [[ -z "$TAG" ]];then
@@ -74,15 +74,16 @@ fi
74
74
 
75
75
  npm version "$TAG" -m "$MESSAGE"
76
76
 
77
- git push --follow-tags
77
+ GIT_USER=$(git config user.name)
78
+
79
+ REMOTE_URL=$(git remote get-url origin)
80
+
81
+ if [[ "$(cat .token)" ]]; then
82
+ git push -u "https://${GIT_USER}:$(cat .token)@${REMOTE_URL#https://}" master --follow-tags
83
+ else
84
+ git push --follow-tags
85
+ fi
78
86
 
79
87
  if [[ "$MESSAGE" =~ -no-ci$ ]]; then
80
88
  NPM_TOKEN=$(cat .npmtoken) npm publish --access public
81
89
  fi
82
-
83
-
84
-
85
-
86
-
87
-
88
-