File tree 1 file changed +7
-5
lines changed 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -8,8 +8,10 @@ const nextTag = `v${nextVersion}`;
8
8
9
9
echo `Publishing ${ nextVersion } on branch ${ branch } ` ;
10
10
11
- // Configure git to use the GitHub token for authentication
12
- await $ `git config --global url."https://x-access-token:${ GITHUB_TOKEN } @github.com/".insteadOf "https://github.com/"` ;
11
+ // git to use the GitHub token for authentication
12
+ await $ `git remote set-url origin https://${ GITHUB_TOKEN } @github.com/NangoHQ/nango.git` ;
13
+ await $ `git config --global user.email "contact@nango.dev"` ;
14
+ await $ `git config --global user.name "Release Bot"` ;
13
15
14
16
const tagExists = await $ `git tag -l ${ nextTag } ` ;
15
17
if ( tagExists . stdout !== '' ) {
@@ -30,14 +32,14 @@ echo`Adding file`;
30
32
await $ `git add -A package.json package-lock.json packages/**/package.json CHANGELOG.md packages/**/lib/version.ts` ;
31
33
32
34
echo `Creating commit` ;
33
- await $ `git -c user.name="Release Bot" -c user.email="contact@nango.dev" commit --allow-empty --author="Release Bot <contact@nango.dev>" -m ${ releaseMessage } ` ;
35
+ await $ `git commit --allow-empty --author="Release Bot <contact@nango.dev>" -m ${ releaseMessage } ` ;
34
36
35
37
echo `Creating tag` ;
36
- await $ `git -c user.name="Release Bot" -c user.email="contact@nango.dev" tag -a ${ nextTag } HEAD -m ${ releaseMessage } ` ;
38
+ await $ `git tag -a ${ nextTag } HEAD -m ${ releaseMessage } ` ;
37
39
38
40
echo `Pushing` ;
39
41
await $ `git push --follow-tags origin HEAD:refs/heads/${ branch } ` ;
40
- await $ `git push --tags` ;
42
+ await $ `git push --tags origin ` ;
41
43
42
44
echo `Commit pushed, publishing release...` ;
43
45
// Push GitHub release
You can’t perform that action at this time.
0 commit comments