fix script
This commit is contained in:
parent
02b3f4b1a7
commit
2c3b50b347
2
index.js
2
index.js
|
@ -40,7 +40,7 @@ Toolkit.run(async tools => {
|
||||||
const remoteRepo = `https://${process.env.GITHUB_ACTOR}:${process.env.GITHUB_TOKEN}@github.com/${process.env.GITHUB_REPOSITORY}.git`
|
const remoteRepo = `https://${process.env.GITHUB_ACTOR}:${process.env.GITHUB_TOKEN}@github.com/${process.env.GITHUB_REPOSITORY}.git`
|
||||||
console.log('remoteRepo:', remoteRepo)
|
console.log('remoteRepo:', remoteRepo)
|
||||||
|
|
||||||
await tools.runInWorkspace('git', ['tag', '-a', newVersion])
|
await tools.runInWorkspace('git', ['tag', newVersion])
|
||||||
await tools.runInWorkspace('git', ['push', `"${remoteRepo}"`, '--follow-tags'])
|
await tools.runInWorkspace('git', ['push', `"${remoteRepo}"`, '--follow-tags'])
|
||||||
await tools.runInWorkspace('git', ['push', `"${remoteRepo}"`, '--tags'])
|
await tools.runInWorkspace('git', ['push', `"${remoteRepo}"`, '--tags'])
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
|
|
Loading…
Reference in New Issue