mirror of
https://github.com/geekgeekrun/geekgeekrun.git
synced 2026-09-05 23:47:54 +08:00
add release ci
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
import { execSync } from 'child_process'
|
||||
import { getPackageInfo } from './increase-package-version.mjs'
|
||||
|
||||
export default async function releaseVersion() {
|
||||
execSync(`git add -A`)
|
||||
const packageInfo = JSON.parse(getPackageInfo().toString('utf-8'))
|
||||
const tagName = `ui-v${packageInfo.version}`
|
||||
execSync(`git commit -m ${tagName}`, { stdio: ['inherit', 'inherit', 'inherit'] })
|
||||
execSync(`git tag ${tagName}`, { stdio: ['inherit', 'inherit', 'inherit'] })
|
||||
execSync(`git push origin ${tagName}`, { stdio: ['inherit', 'inherit', 'inherit'] })
|
||||
}
|
||||
Reference in New Issue
Block a user