-
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
5 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,10 @@ if (!process.env.CI) { | |
exitWithError('The script should only be run in CI'); | ||
} | ||
|
||
exec( | ||
`echo "//registry.npmjs.org/:_authToken=${process.env.NPM_TOKEN}" > ~/.npmrc`, | ||
); | ||
|
||
exec('git config --global user.name "Zihua Li"'); | ||
exec('git config --global user.email "[email protected]"'); | ||
|
||
|
@@ -117,7 +121,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 { | ||
|