debug: use publish remote instead of master
This commit is contained in:
parent
647e48f01c
commit
6d7da29bb3
|
@ -51,8 +51,7 @@ const run = async () => {
|
||||||
/* configure git */
|
/* configure git */
|
||||||
const { GITHUB_ACTOR, GITHUB_TOKEN, GITHUB_REPOSITORY } = process.env
|
const { GITHUB_ACTOR, GITHUB_TOKEN, GITHUB_REPOSITORY } = process.env
|
||||||
const remote = `https://${GITHUB_ACTOR}:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git`
|
const remote = `https://${GITHUB_ACTOR}:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git`
|
||||||
run(`git remote rm origin`)
|
run(`git remote add publish ${remote}`)
|
||||||
run(`git remote add origin ${remote}`)
|
|
||||||
run(`git config user.name "Merge Release"`)
|
run(`git config user.name "Merge Release"`)
|
||||||
run(`git config user.email "merge-release@users.noreply.github.com"`)
|
run(`git config user.email "merge-release@users.noreply.github.com"`)
|
||||||
|
|
||||||
|
@ -68,8 +67,8 @@ const run = async () => {
|
||||||
run(`git merge tmp`)
|
run(`git merge tmp`)
|
||||||
|
|
||||||
run(`npm publish --access=public`)
|
run(`npm publish --access=public`)
|
||||||
run(`git push origin master`)
|
run(`git push publish master`)
|
||||||
await git.addTag(newVersion)
|
await git.addTag(newVersion)
|
||||||
await git.pushTags('origin')
|
await git.pushTags('publish')
|
||||||
}
|
}
|
||||||
run()
|
run()
|
||||||
|
|
Loading…
Reference in New Issue