-
Notifications
You must be signed in to change notification settings - Fork 146
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
3 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,6 +27,8 @@ if (!process.env.CI) { | |
exitWithError('The script should only be run in CI'); | ||
} | ||
|
||
exec(`echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > ~/.npmrc`); | ||
|
||
exec('git config --global user.name "Zihua Li"'); | ||
exec('git config --global user.email "[email protected]"'); | ||
|
||
|
@@ -117,7 +119,7 @@ fs.writeFileSync( | |
exec('git add CHANGELOG.md'); | ||
exec(`npm version ${version} -f`); | ||
|
||
const pushCommand = 'git push --tags'; | ||
const pushCommand = `git push origin ${GITHUB_REF_NAME} --follow-tags`; | ||
if (dryRun) { | ||
console.log(`Skipping: "${pushCommand}" in dry-run mode`); | ||
} else { | ||
|