/
githubmirror
/
vuetify
Обзор
Документация
Войти
/
githubmirror
/
vuetify
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
scripts/post-release-merge.js
33 строки
749 B
Joaquín Sánchez
chore: move repo to ESM (#21105)
19 мар 2025, 09:34
Не верифицирован
19 мар 2025, 09:34
d822282
Код
Авторство
О чём код?
import shell from 'shelljs' let branch = exec('git symbolic-ref --short HEAD') if (process.env.CI) process.exit(0) /** * @param command {string} * @returns {string} */ function exec (command) { const result = shell.exec(command, { silent: true }) if (result.code) { shell.echo('') console.error(result.stdout.trim()) shell.exit(1) } return result.stdout.trim() } if (branch === 'master') { shell.exec('git checkout dev') branch = 'dev' shell.exec('git pull --ff-only') shell.exec('git merge master') if (exec('git status --porcelain') === '') { shell.exec('git push --no-verify') shell.exec('git checkout master') } else { shell.echo('Please resolve conflicts then push the current branch') } }