mirror of
https://github.com/andrei0x309/clear-wallet.git
synced 2025-02-02 14:50:44 +00:00
chore: add check pub command is running on main branch
This commit is contained in:
parent
bada249262
commit
60ae1fb2a1
@ -3,6 +3,14 @@ import { readFileSync, writeFileSync } from 'fs';
|
||||
import { resolve } from 'path';
|
||||
|
||||
async function main() {
|
||||
|
||||
// -1. Check if you are in the main branch
|
||||
const branch = execSync(`git branch --show-current`).toString();
|
||||
if (branch !== 'main') {
|
||||
console.log('You must be in the main branch to create a release');
|
||||
return
|
||||
}
|
||||
|
||||
// 0. Check tag is not already created
|
||||
const tags = execSync(`git tag --list`).toString();
|
||||
if(!process.env.npm_package_version) {
|
||||
|
Loading…
Reference in New Issue
Block a user