infra-kit 0.1.7 → 0.1.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/main.js +2 -2
- package/dist/main.js.map +4 -4
- package/package.json +8 -8
- package/src/commands/gh-deploy/gh-deploy.ts +29 -28
- package/src/commands/gh-merge-dev/gh-merge-dev.ts +35 -35
- package/src/commands/{gh-create-release/gh-create-release.ts → gh-release-create/gh-release-create.ts} +18 -15
- package/src/commands/gh-release-create/index.ts +1 -0
- package/src/commands/gh-release-delivery/gh-release-delivery.ts +38 -0
- package/src/commands/gh-release-delivery/index.ts +1 -0
- package/src/entry/main.ts +11 -8
- package/src/shared/constants.ts +4 -0
- package/src/shared/gh-cli-auth/gh-cli-auth.ts +5 -4
- package/src/shared/gh-release-prs/gh-release-prs.ts +35 -0
- package/src/shared/gh-release-prs/index.ts +1 -0
- package/tsconfig.json +3 -4
- package/src/commands/gh-create-release/index.ts +0 -1
package/dist/main.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{Command as
|
|
2
|
-
`),console.log(`\u2705 Successfully launched workflow_dispatch with name !deploy-all for release branch: ${
|
|
1
|
+
import{Command as G}from"commander";import R from"@inquirer/select";import p from"node:process";import{$ as E}from"zx";var h=["dev","arthur","renana","roman","eliran","oriana"];import w from"node:process";import{$ as v}from"zx";var l=async()=>{try{await v`gh --version`}catch(e){console.error("Error: GitHub CLI (gh) is not installed.",e?.message),console.error("Please install it from: https://cli.github.com/"),w.exit(1)}try{await v`gh auth status`}catch(e){console.error("Error: GitHub CLI (gh) is not authenticated.",e?.message),console.error('Please authenticate it from: https://cli.github.com/manual/gh_auth_login or type "gh auth login"'),w.exit(1)}};import y from"node:process";import{$ as x}from"zx";var g=async()=>{try{let e=await x`gh pr list --search "Release in:title" --base dev --json number,title,headRefName,state,baseRefName`,r=JSON.parse(e.stdout);return r.length===0&&(console.error("\u274C No release PRs found. Check the project folder for the script. Exiting..."),y.exit(1)),r.map(t=>t.headRefName)}catch(e){console.error("\u274C Error fetching release PRs:",e instanceof Error?e.message:String(e)),y.exit(1)}};var f=async e=>{let{version:r}=e;await l();let t=["dev"],s=await g();t.push(...s);let a="";r?a=`release/v${r}`:a=await R({message:"\u{1F50D} Select release branch",choices:t.map(o=>({name:o.replace("release/v",""),value:o}))}),t.includes(a)||(console.error(`\u274C Release branch ${a} not found in open PRs. Exiting...`),p.exit(1));let c=await R({message:"Select environment",choices:h.map(o=>({name:o,value:o}))});h.includes(c)||(console.error(`\u274C Invalid environment: ${c}. Exiting...`),p.exit(1));try{await E`gh workflow run "!deploy-all" --ref ${a} -f environment=${c}`,console.log(`
|
|
2
|
+
`),console.log(`\u2705 Successfully launched workflow_dispatch with name !deploy-all for release branch: ${a} and environment: ${c}`)}catch(o){console.error("\u274C Error launching workflow:",o instanceof Error?o.message:"Unknown error"),p.exit(1)}};import A from"@inquirer/checkbox";import P from"@inquirer/confirm";import k from"node:process";import{$ as n}from"zx";var d=async e=>{let{all:r,yes:t}=e;await l();let s=await g(),a=[];r?a=s:a=await A({required:!0,message:"\u{1F50D} Select release branches",choices:s.map(o=>({name:o,value:o}))}),(t?!0:await P({message:`Are you sure you want to merge dev into these branches: ${a.join(", ")}?`}))||(console.log("Operation cancelled. Exiting..."),k.exit(0)),await n`git fetch origin`,await n`git switch dev`,await n`git pull origin dev`;for(let o of a)await C(o);console.log("\u2705 All merges completed!")},C=async e=>{console.log(`Merging dev into ${e}...`);try{await n`git switch ${e}`,await n`git pull origin ${e}`,await n`git merge origin/dev --no-edit`,await n`git push origin ${e}`,await n`git switch dev`,console.log(`Successfully merged dev into ${e}`)}catch(r){console.error(`Error merging dev into ${e}:`,r instanceof Error?r.message:"Unknown error")}};import b from"node:process";import{$ as i,question as $}from"zx";var u=async()=>{let r=(await $("Enter versions (e.g. 1.2.5, 1.2.6): ")).split(",").map(s=>s.trim());r.length===0&&(console.error("No versions provided. Exiting..."),b.exit(1)),(await $(`Are you sure you want to create release branches for these versions: ${r.join(", ")}? (y/n) `)).toLowerCase()!=="y"&&(console.log("Operation cancelled. Exiting..."),b.exit(0)),await i`git fetch origin`,await i`git switch dev`,await i`git pull origin dev`;for(let s of r)await D(s);console.log("All release branches were created successfully.")};async function D(e){await l();let r=`release/v${e}`;console.log(`Creating release branch ${r}...`);try{await i`git switch dev`,await i`git pull origin dev`,await i`git checkout -b ${r}`,await i`git commit --allow-empty-message --allow-empty --message ''`,await i`git push origin ${r}`,await i`gh pr create --title "WIP Release v${e}" --body "Release v${e}" --base dev --head ${r}`,await i`git switch dev`,console.log(`Successfully created release branch: ${r}`)}catch(t){console.error(`Error creating release branch ${r}:`,t instanceof Error?t.message:"Unknown error")}}var m=new G;m.command("deploy").description("Deploy any release branch to any environment").option("-v, --version <version>","Specify the version to deploy, e.g. 1.2.5").action(async e=>{await f({version:e.version})});m.command("release-create").description("Create a new release branch").action(async()=>{await u()});m.command("merge-dev").description("Merge dev branch into every release branch").option("-a, --all","Select all release branches").option("-y, --yes","Skip confirmation prompt").action(async e=>{await d({all:e.all,yes:e.yes})});m.parse();
|
|
3
3
|
//# sourceMappingURL=main.js.map
|
package/dist/main.js.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
|
-
"sources": ["../src/entry/main.ts", "../src/commands/gh-
|
|
4
|
-
"sourcesContent": ["import { Command } from 'commander'\n\nimport {
|
|
5
|
-
"mappings": "AAAA,OAAS,WAAAA,MAAe,
|
|
6
|
-
"names": ["Command", "
|
|
3
|
+
"sources": ["../src/entry/main.ts", "../src/commands/gh-deploy/gh-deploy.ts", "../src/shared/constants.ts", "../src/shared/gh-cli-auth/gh-cli-auth.ts", "../src/shared/gh-release-prs/gh-release-prs.ts", "../src/commands/gh-merge-dev/gh-merge-dev.ts", "../src/commands/gh-release-create/gh-release-create.ts"],
|
|
4
|
+
"sourcesContent": ["import { Command } from 'commander'\n\nimport { ghDeploy } from '../commands/gh-deploy'\nimport { ghMergeDev } from '../commands/gh-merge-dev'\nimport { ghReleaseCreate } from '../commands/gh-release-create'\n\nconst program = new Command()\n\nprogram\n .command('deploy')\n .description('Deploy any release branch to any environment')\n .option('-v, --version <version>', 'Specify the version to deploy, e.g. 1.2.5')\n .action(async (options) => {\n await ghDeploy({ version: options.version })\n })\n\nprogram\n .command('release-create')\n .description('Create a new release branch')\n .action(async () => {\n await ghReleaseCreate()\n })\n\nprogram\n .command('merge-dev')\n .description('Merge dev branch into every release branch')\n .option('-a, --all', 'Select all release branches')\n .option('-y, --yes', 'Skip confirmation prompt')\n .action(async (options) => {\n await ghMergeDev({ all: options.all, yes: options.yes })\n })\n\nprogram.parse()\n", "/* eslint-disable no-console */\nimport select from '@inquirer/select'\nimport process from 'node:process'\nimport { $ } from 'zx'\n\nimport { ENVs } from 'src/shared/constants'\nimport { validateGitHubCliAndAuth } from 'src/shared/gh-cli-auth'\nimport { getReleasePRs } from 'src/shared/gh-release-prs'\n\ninterface GhDeployArgs {\n version: string\n}\n\n/**\n * Deploy a release branch to an environment\n */\nexport const ghDeploy = async (args: GhDeployArgs) => {\n const { version } = args\n\n await validateGitHubCliAndAuth()\n\n // TODO: add validation for semver version for version variable\n\n const releasePRsList: string[] = ['dev'] // [\"release/v1.8.0\", \"release/v1.9.0\"]\n\n const releasePRs = await getReleasePRs()\n\n releasePRsList.push(...releasePRs)\n\n let selectedReleaseBranch = ''\n if (version) {\n selectedReleaseBranch = `release/v${version}`\n } else {\n selectedReleaseBranch = await select({\n message: '\uD83D\uDD0D Select release branch',\n choices: releasePRsList.map((pr) => ({\n name: pr.replace('release/v', ''),\n value: pr,\n })),\n })\n }\n\n // Check if release branch exists in the list\n if (!releasePRsList.includes(selectedReleaseBranch)) {\n console.error(`\u274C Release branch ${selectedReleaseBranch} not found in open PRs. Exiting...`)\n process.exit(1)\n }\n\n const env = await select({\n message: 'Select environment',\n choices: ENVs.map((env) => ({\n name: env,\n value: env,\n })),\n })\n\n if (!ENVs.includes(env)) {\n console.error(`\u274C Invalid environment: ${env}. Exiting...`)\n process.exit(1)\n }\n\n try {\n await $`gh workflow run \"!deploy-all\" --ref ${selectedReleaseBranch} -f environment=${env}`\n\n console.log('\\n')\n console.log(\n `\u2705 Successfully launched workflow_dispatch with name !deploy-all for release branch: ${selectedReleaseBranch} and environment: ${env}`,\n )\n } catch (error: unknown) {\n console.error('\u274C Error launching workflow:', error instanceof Error ? error.message : 'Unknown error')\n process.exit(1)\n }\n}\n", "/**\n * List of environments for the project deployment\n */\nexport const ENVs = ['dev', 'arthur', 'renana', 'roman', 'eliran', 'oriana']\n", "import process from 'node:process'\nimport { $ } from 'zx'\n\n/**\n * Validate GitHub CLI installation and authentication status and throw an error if not valid\n */\nexport const validateGitHubCliAndAuth = async () => {\n try {\n await $`gh --version`\n } catch (error: unknown) {\n console.error('Error: GitHub CLI (gh) is not installed.', (error as Error)?.message)\n console.error('Please install it from: https://cli.github.com/')\n process.exit(1)\n }\n\n try {\n await $`gh auth status`\n } catch (error: unknown) {\n console.error('Error: GitHub CLI (gh) is not authenticated.', (error as Error)?.message)\n console.error('Please authenticate it from: https://cli.github.com/manual/gh_auth_login or type \"gh auth login\"')\n process.exit(1)\n }\n}\n", "import process from 'node:process'\nimport { $ } from 'zx'\n\ninterface ReleasePR {\n headRefName: string\n number: number\n state: string\n title: string\n baseRefName: string\n}\n\n/**\n * Fetch open release PRs from GitHub with 'Release' in the title and base 'dev'.\n * Returns an array of headRefName strings.\n * Throws an error if fetching fails.\n */\nexport const getReleasePRs = async (): Promise<string[]> => {\n try {\n // Example of releasePRs.output: {\"headRefName\":\"release/v1.8.0\",\"number\":665,\"state\":\"OPEN\",\"title\":\"WIP Release/v1.8.0\"}\n const releasePRs =\n await $`gh pr list --search \"Release in:title\" --base dev --json number,title,headRefName,state,baseRefName`\n\n const releasePRsArray: ReleasePR[] = JSON.parse(releasePRs.stdout)\n\n if (releasePRsArray.length === 0) {\n console.error('\u274C No release PRs found. Check the project folder for the script. Exiting...')\n process.exit(1)\n }\n\n return releasePRsArray.map((pr) => pr.headRefName)\n } catch (error) {\n console.error('\u274C Error fetching release PRs:', error instanceof Error ? error.message : String(error))\n process.exit(1)\n }\n}\n", "/* eslint-disable no-console */\nimport checkbox from '@inquirer/checkbox'\nimport confirm from '@inquirer/confirm'\nimport process from 'node:process'\nimport { $ } from 'zx'\n\nimport { validateGitHubCliAndAuth } from 'src/shared/gh-cli-auth'\nimport { getReleasePRs } from 'src/shared/gh-release-prs'\n\ninterface GhMergeDevArgs {\n all: boolean\n yes: boolean\n}\n\n/**\n * Merge dev into every release branch\n */\nexport const ghMergeDev = async (args: GhMergeDevArgs) => {\n const { all, yes } = args\n\n await validateGitHubCliAndAuth()\n\n const releasePRsList = await getReleasePRs()\n\n let selectedReleaseBranches: string[] = []\n\n if (all) {\n selectedReleaseBranches = releasePRsList\n } else {\n selectedReleaseBranches = await checkbox({\n required: true,\n message: '\uD83D\uDD0D Select release branches',\n choices: releasePRsList.map((pr) => ({\n name: pr,\n value: pr,\n })),\n })\n }\n\n // Validate input\n // if (selectedReleaseBranches.length === 0) {\n // console.error('No branches provided. Exiting...')\n // process.exit(1)\n // }\n\n const answer = yes\n ? true\n : await confirm({\n message: `Are you sure you want to merge dev into these branches: ${selectedReleaseBranches.join(', ')}?`,\n })\n\n if (!answer) {\n console.log('Operation cancelled. Exiting...')\n process.exit(0)\n }\n\n await $`git fetch origin`\n await $`git switch dev`\n await $`git pull origin dev`\n\n // Merge dev into each branch\n for (const branch of selectedReleaseBranches) {\n await mergeDev(branch)\n }\n\n console.log('\u2705 All merges completed!')\n}\n\n// Function to merge dev into a given branch\nconst mergeDev = async (branch: string) => {\n console.log(`Merging dev into ${branch}...`)\n\n try {\n await $`git switch ${branch}`\n\n await $`git pull origin ${branch}`\n\n await $`git merge origin/dev --no-edit`\n\n await $`git push origin ${branch}`\n\n await $`git switch dev`\n\n console.log(`Successfully merged dev into ${branch}`)\n } catch (error: unknown) {\n console.error(`Error merging dev into ${branch}:`, error instanceof Error ? error.message : 'Unknown error')\n }\n}\n", "/* eslint-disable no-console */\nimport process from 'node:process'\nimport { $, question } from 'zx'\n\nimport { validateGitHubCliAndAuth } from 'src/shared/gh-cli-auth'\n\nexport const ghReleaseCreate = async () => {\n const versionBranches = await question('Enter versions (e.g. 1.2.5, 1.2.6): ')\n\n const versions = versionBranches.split(',').map((version) => version.trim())\n\n // Validate input\n if (versions.length === 0) {\n console.error('No versions provided. Exiting...')\n process.exit(1)\n }\n\n // Confirm the operation\n const confirm = await question(\n `Are you sure you want to create release branches for these versions: ${versions.join(', ')}? (y/n) `,\n )\n\n if (confirm.toLowerCase() !== 'y') {\n console.log('Operation cancelled. Exiting...')\n process.exit(0)\n }\n\n await $`git fetch origin`\n\n await $`git switch dev`\n\n await $`git pull origin dev`\n\n // Create release branches for each version\n for (const version of versions) {\n await createReleaseBranch(version)\n }\n\n console.log('All release branches were created successfully.')\n}\n\n// #region Declarations\n\n// Function to create a release branch\nasync function createReleaseBranch(version: string) {\n await validateGitHubCliAndAuth()\n\n const branchName = `release/v${version}`\n console.log(`Creating release branch ${branchName}...`)\n\n try {\n await $`git switch dev`\n await $`git pull origin dev`\n\n await $`git checkout -b ${branchName}`\n await $`git commit --allow-empty-message --allow-empty --message ''`\n await $`git push origin ${branchName}`\n\n // Create PR if not already exists (optional: you may want to check for existing PRs)\n await $`gh pr create --title \"WIP Release v${version}\" --body \"Release v${version}\" --base dev --head ${branchName}`\n\n await $`git switch dev`\n console.log(`Successfully created release branch: ${branchName}`)\n } catch (error: unknown) {\n console.error(\n `Error creating release branch ${branchName}:`,\n error instanceof Error ? error.message : 'Unknown error',\n )\n }\n}\n// #endregion Declarations\n"],
|
|
5
|
+
"mappings": "AAAA,OAAS,WAAAA,MAAe,YCCxB,OAAOC,MAAY,mBACnB,OAAOC,MAAa,eACpB,OAAS,KAAAC,MAAS,KCAX,IAAMC,EAAO,CAAC,MAAO,SAAU,SAAU,QAAS,SAAU,QAAQ,ECH3E,OAA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aAAiB,MAAQA,EAAM,QAAU,eAC3C,CACF,CACF,CN/DA,IAAMC,EAAU,IAAIC,EAEpBD,EACG,QAAQ,QAAQ,EAChB,YAAY,8CAA8C,EAC1D,OAAO,0BAA2B,2CAA2C,EAC7E,OAAO,MAAOE,GAAY,CACzB,MAAMC,EAAS,CAAE,QAASD,EAAQ,OAAQ,CAAC,CAC7C,CAAC,EAEHF,EACG,QAAQ,gBAAgB,EACxB,YAAY,6BAA6B,EACzC,OAAO,SAAY,CAClB,MAAMI,EAAgB,CACxB,CAAC,EAEHJ,EACG,QAAQ,WAAW,EACnB,YAAY,4CAA4C,EACxD,OAAO,YAAa,6BAA6B,EACjD,OAAO,YAAa,0BAA0B,EAC9C,OAAO,MAAOE,GAAY,CACzB,MAAMG,EAAW,CAAE,IAAKH,EAAQ,IAAK,IAAKA,EAAQ,GAAI,CAAC,CACzD,CAAC,EAEHF,EAAQ,MAAM",
|
|
6
|
+
"names": ["Command", "select", "process", "$", "ENVs", "process", "$", "validateGitHubCliAndAuth", "error", "process", "$", "getReleasePRs", "releasePRs", "releasePRsArray", "pr", "error", "ghDeploy", "args", "version", "validateGitHubCliAndAuth", "releasePRsList", "releasePRs", "getReleasePRs", "selectedReleaseBranch", "select", "pr", "process", "env", "ENVs", "$", "error", "checkbox", "confirm", "process", "$", "ghMergeDev", "args", "all", "yes", "validateGitHubCliAndAuth", "releasePRsList", "getReleasePRs", "selectedReleaseBranches", "checkbox", "pr", "confirm", "process", "$", "branch", "mergeDev", "error", "process", "$", "question", "ghReleaseCreate", "versions", "question", "version", "process", "$", "createReleaseBranch", "validateGitHubCliAndAuth", "branchName", "error", "program", "Command", "options", "ghDeploy", "ghReleaseCreate", "ghMergeDev"]
|
|
7
7
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "infra-kit",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.11",
|
|
5
5
|
"description": "infra-kit",
|
|
6
6
|
"main": "dist/main.js",
|
|
7
7
|
"module": "dist/main.js",
|
|
@@ -29,17 +29,17 @@
|
|
|
29
29
|
"fix": "pnpm run prettier-fix && pnpm run eslint-fix && pnpm run qa"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@inquirer/checkbox": "^4.1.
|
|
33
|
-
"@inquirer/confirm": "^5.1.
|
|
34
|
-
"@inquirer/select": "^4.
|
|
35
|
-
"commander": "^
|
|
36
|
-
"zx": "^8.
|
|
32
|
+
"@inquirer/checkbox": "^4.1.9",
|
|
33
|
+
"@inquirer/confirm": "^5.1.13",
|
|
34
|
+
"@inquirer/select": "^4.2.4",
|
|
35
|
+
"commander": "^14.0.0",
|
|
36
|
+
"zx": "^8.6.1"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
39
|
"@monorepo/eslint-config": "workspace:*",
|
|
40
40
|
"@monorepo/storybook-config": "workspace:*",
|
|
41
41
|
"@monorepo/vitest-config": "workspace:*",
|
|
42
|
-
"esbuild": "^0.25.
|
|
43
|
-
"typescript": "^5.8.
|
|
42
|
+
"esbuild": "^0.25.5",
|
|
43
|
+
"typescript": "^5.8.3"
|
|
44
44
|
}
|
|
45
45
|
}
|
|
@@ -1,44 +1,45 @@
|
|
|
1
|
+
/* eslint-disable no-console */
|
|
1
2
|
import select from '@inquirer/select'
|
|
3
|
+
import process from 'node:process'
|
|
2
4
|
import { $ } from 'zx'
|
|
3
5
|
|
|
4
|
-
import {
|
|
6
|
+
import { ENVs } from 'src/shared/constants'
|
|
7
|
+
import { validateGitHubCliAndAuth } from 'src/shared/gh-cli-auth'
|
|
8
|
+
import { getReleasePRs } from 'src/shared/gh-release-prs'
|
|
9
|
+
|
|
10
|
+
interface GhDeployArgs {
|
|
11
|
+
version: string
|
|
12
|
+
}
|
|
5
13
|
|
|
6
14
|
/**
|
|
7
15
|
* Deploy a release branch to an environment
|
|
8
16
|
*/
|
|
9
|
-
export const ghDeploy = async () => {
|
|
10
|
-
|
|
17
|
+
export const ghDeploy = async (args: GhDeployArgs) => {
|
|
18
|
+
const { version } = args
|
|
11
19
|
|
|
12
|
-
|
|
20
|
+
await validateGitHubCliAndAuth()
|
|
13
21
|
|
|
14
|
-
|
|
22
|
+
// TODO: add validation for semver version for version variable
|
|
15
23
|
|
|
16
|
-
|
|
17
|
-
// Example of releasePRs.output: {"headRefName":"release/v1.8.0","number":665,"state":"OPEN","title":"WIP Release/v1.8.0"}
|
|
18
|
-
const releasePRs =
|
|
19
|
-
await $`gh pr list --search "Release in:title" --base dev --json number,title,headRefName,state,baseRefName`
|
|
24
|
+
const releasePRsList: string[] = ['dev'] // ["release/v1.8.0", "release/v1.9.0"]
|
|
20
25
|
|
|
21
|
-
|
|
26
|
+
const releasePRs = await getReleasePRs()
|
|
22
27
|
|
|
23
|
-
|
|
24
|
-
console.error('❌ No release PRs found. Check the project folder for the script. Exiting...')
|
|
25
|
-
process.exit(1)
|
|
26
|
-
}
|
|
28
|
+
releasePRsList.push(...releasePRs)
|
|
27
29
|
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
30
|
+
let selectedReleaseBranch = ''
|
|
31
|
+
if (version) {
|
|
32
|
+
selectedReleaseBranch = `release/v${version}`
|
|
33
|
+
} else {
|
|
34
|
+
selectedReleaseBranch = await select({
|
|
35
|
+
message: '🔍 Select release branch',
|
|
36
|
+
choices: releasePRsList.map((pr) => ({
|
|
37
|
+
name: pr.replace('release/v', ''),
|
|
38
|
+
value: pr,
|
|
39
|
+
})),
|
|
40
|
+
})
|
|
32
41
|
}
|
|
33
42
|
|
|
34
|
-
const selectedReleaseBranch = await select({
|
|
35
|
-
message: '🔍 Select release branch',
|
|
36
|
-
choices: releasePRsList.map((pr) => ({
|
|
37
|
-
name: pr.replace('release/v', ''),
|
|
38
|
-
value: pr,
|
|
39
|
-
})),
|
|
40
|
-
})
|
|
41
|
-
|
|
42
43
|
// Check if release branch exists in the list
|
|
43
44
|
if (!releasePRsList.includes(selectedReleaseBranch)) {
|
|
44
45
|
console.error(`❌ Release branch ${selectedReleaseBranch} not found in open PRs. Exiting...`)
|
|
@@ -65,8 +66,8 @@ export const ghDeploy = async () => {
|
|
|
65
66
|
console.log(
|
|
66
67
|
`✅ Successfully launched workflow_dispatch with name !deploy-all for release branch: ${selectedReleaseBranch} and environment: ${env}`,
|
|
67
68
|
)
|
|
68
|
-
} catch (error) {
|
|
69
|
-
console.error('❌ Error launching workflow:', error.message)
|
|
69
|
+
} catch (error: unknown) {
|
|
70
|
+
console.error('❌ Error launching workflow:', error instanceof Error ? error.message : 'Unknown error')
|
|
70
71
|
process.exit(1)
|
|
71
72
|
}
|
|
72
73
|
}
|
|
@@ -1,53 +1,53 @@
|
|
|
1
|
+
/* eslint-disable no-console */
|
|
1
2
|
import checkbox from '@inquirer/checkbox'
|
|
2
3
|
import confirm from '@inquirer/confirm'
|
|
4
|
+
import process from 'node:process'
|
|
3
5
|
import { $ } from 'zx'
|
|
4
6
|
|
|
5
|
-
import { validateGitHubCliAndAuth } from '
|
|
7
|
+
import { validateGitHubCliAndAuth } from 'src/shared/gh-cli-auth'
|
|
8
|
+
import { getReleasePRs } from 'src/shared/gh-release-prs'
|
|
9
|
+
|
|
10
|
+
interface GhMergeDevArgs {
|
|
11
|
+
all: boolean
|
|
12
|
+
yes: boolean
|
|
13
|
+
}
|
|
6
14
|
|
|
7
15
|
/**
|
|
8
16
|
* Merge dev into every release branch
|
|
9
17
|
*/
|
|
10
|
-
export const ghMergeDev = async () => {
|
|
11
|
-
|
|
18
|
+
export const ghMergeDev = async (args: GhMergeDevArgs) => {
|
|
19
|
+
const { all, yes } = args
|
|
12
20
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
try {
|
|
16
|
-
// Example of releasePRs.output: {"headRefName":"release/v1.8.0","number":665,"state":"OPEN","title":"WIP Release/v1.8.0"}
|
|
17
|
-
const releasePRs =
|
|
18
|
-
await $`gh pr list --search "Release in:title" --base dev --json number,title,headRefName,state,baseRefName`
|
|
19
|
-
|
|
20
|
-
const releasePRsArray = JSON.parse(releasePRs.stdout)
|
|
21
|
-
|
|
22
|
-
if (releasePRsArray.length === 0) {
|
|
23
|
-
console.error('❌ No release PRs found. Check the project folder for the script. Exiting...')
|
|
24
|
-
process.exit(1)
|
|
25
|
-
}
|
|
21
|
+
await validateGitHubCliAndAuth()
|
|
26
22
|
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
23
|
+
const releasePRsList = await getReleasePRs()
|
|
24
|
+
|
|
25
|
+
let selectedReleaseBranches: string[] = []
|
|
26
|
+
|
|
27
|
+
if (all) {
|
|
28
|
+
selectedReleaseBranches = releasePRsList
|
|
29
|
+
} else {
|
|
30
|
+
selectedReleaseBranches = await checkbox({
|
|
31
|
+
required: true,
|
|
32
|
+
message: '🔍 Select release branches',
|
|
33
|
+
choices: releasePRsList.map((pr) => ({
|
|
34
|
+
name: pr,
|
|
35
|
+
value: pr,
|
|
36
|
+
})),
|
|
37
|
+
})
|
|
31
38
|
}
|
|
32
39
|
|
|
33
|
-
const selectedReleaseBranches = await checkbox({
|
|
34
|
-
required: true,
|
|
35
|
-
message: '🔍 Select release branches',
|
|
36
|
-
choices: releasePRsList.map((pr) => ({
|
|
37
|
-
name: pr,
|
|
38
|
-
value: pr,
|
|
39
|
-
})),
|
|
40
|
-
})
|
|
41
|
-
|
|
42
40
|
// Validate input
|
|
43
41
|
// if (selectedReleaseBranches.length === 0) {
|
|
44
42
|
// console.error('No branches provided. Exiting...')
|
|
45
43
|
// process.exit(1)
|
|
46
44
|
// }
|
|
47
45
|
|
|
48
|
-
const answer =
|
|
49
|
-
|
|
50
|
-
|
|
46
|
+
const answer = yes
|
|
47
|
+
? true
|
|
48
|
+
: await confirm({
|
|
49
|
+
message: `Are you sure you want to merge dev into these branches: ${selectedReleaseBranches.join(', ')}?`,
|
|
50
|
+
})
|
|
51
51
|
|
|
52
52
|
if (!answer) {
|
|
53
53
|
console.log('Operation cancelled. Exiting...')
|
|
@@ -63,7 +63,7 @@ export const ghMergeDev = async () => {
|
|
|
63
63
|
await mergeDev(branch)
|
|
64
64
|
}
|
|
65
65
|
|
|
66
|
-
console.log('All merges completed
|
|
66
|
+
console.log('✅ All merges completed!')
|
|
67
67
|
}
|
|
68
68
|
|
|
69
69
|
// Function to merge dev into a given branch
|
|
@@ -82,7 +82,7 @@ const mergeDev = async (branch: string) => {
|
|
|
82
82
|
await $`git switch dev`
|
|
83
83
|
|
|
84
84
|
console.log(`Successfully merged dev into ${branch}`)
|
|
85
|
-
} catch (error) {
|
|
86
|
-
console.error(`Error merging dev into ${branch}:`, error.message)
|
|
85
|
+
} catch (error: unknown) {
|
|
86
|
+
console.error(`Error merging dev into ${branch}:`, error instanceof Error ? error.message : 'Unknown error')
|
|
87
87
|
}
|
|
88
88
|
}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
+
/* eslint-disable no-console */
|
|
2
|
+
import process from 'node:process'
|
|
1
3
|
import { $, question } from 'zx'
|
|
2
4
|
|
|
3
|
-
import { validateGitHubCliAndAuth } from '
|
|
5
|
+
import { validateGitHubCliAndAuth } from 'src/shared/gh-cli-auth'
|
|
4
6
|
|
|
5
|
-
export const
|
|
7
|
+
export const ghReleaseCreate = async () => {
|
|
6
8
|
const versionBranches = await question('Enter versions (e.g. 1.2.5, 1.2.6): ')
|
|
7
9
|
|
|
8
10
|
const versions = versionBranches.split(',').map((version) => version.trim())
|
|
@@ -37,32 +39,33 @@ export const ghCreateRelease = async () => {
|
|
|
37
39
|
console.log('All release branches were created successfully.')
|
|
38
40
|
}
|
|
39
41
|
|
|
40
|
-
|
|
42
|
+
// #region Declarations
|
|
41
43
|
|
|
42
44
|
// Function to create a release branch
|
|
43
45
|
async function createReleaseBranch(version: string) {
|
|
44
46
|
await validateGitHubCliAndAuth()
|
|
45
47
|
|
|
46
|
-
|
|
48
|
+
const branchName = `release/v${version}`
|
|
49
|
+
console.log(`Creating release branch ${branchName}...`)
|
|
47
50
|
|
|
48
51
|
try {
|
|
49
52
|
await $`git switch dev`
|
|
50
|
-
|
|
51
53
|
await $`git pull origin dev`
|
|
52
54
|
|
|
53
|
-
await $`git checkout -b
|
|
54
|
-
|
|
55
|
+
await $`git checkout -b ${branchName}`
|
|
55
56
|
await $`git commit --allow-empty-message --allow-empty --message ''`
|
|
57
|
+
await $`git push origin ${branchName}`
|
|
56
58
|
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
await $`gh pr create --title "WIP Release v${version}" --body "Release v${version}" --base dev --head release/v${version}`
|
|
59
|
+
// Create PR if not already exists (optional: you may want to check for existing PRs)
|
|
60
|
+
await $`gh pr create --title "WIP Release v${version}" --body "Release v${version}" --base dev --head ${branchName}`
|
|
60
61
|
|
|
61
62
|
await $`git switch dev`
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
63
|
+
console.log(`Successfully created release branch: ${branchName}`)
|
|
64
|
+
} catch (error: unknown) {
|
|
65
|
+
console.error(
|
|
66
|
+
`Error creating release branch ${branchName}:`,
|
|
67
|
+
error instanceof Error ? error.message : 'Unknown error',
|
|
68
|
+
)
|
|
66
69
|
}
|
|
67
70
|
}
|
|
68
|
-
|
|
71
|
+
// #endregion Declarations
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ghReleaseCreate } from './gh-release-create'
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/* eslint-disable no-console */
|
|
2
|
+
import confirm from '@inquirer/confirm'
|
|
3
|
+
import select from '@inquirer/select'
|
|
4
|
+
import process from 'node:process'
|
|
5
|
+
|
|
6
|
+
// import { $, question } from 'zx'
|
|
7
|
+
|
|
8
|
+
import { validateGitHubCliAndAuth } from 'src/shared/gh-cli-auth'
|
|
9
|
+
import { getReleasePRs } from 'src/shared/gh-release-prs'
|
|
10
|
+
|
|
11
|
+
export const ghReleaseDelivery = async () => {
|
|
12
|
+
await validateGitHubCliAndAuth()
|
|
13
|
+
|
|
14
|
+
const releasePRsList = await getReleasePRs()
|
|
15
|
+
|
|
16
|
+
const selectedReleaseBranch = await select({
|
|
17
|
+
message: '🔍 Select release branch',
|
|
18
|
+
choices: releasePRsList.map((pr: string) => ({
|
|
19
|
+
name: pr.replace('release/v', ''),
|
|
20
|
+
value: pr,
|
|
21
|
+
})),
|
|
22
|
+
})
|
|
23
|
+
|
|
24
|
+
// Check if release branch exists in the list
|
|
25
|
+
if (!releasePRsList.includes(selectedReleaseBranch)) {
|
|
26
|
+
console.error(`❌ Release branch ${selectedReleaseBranch} not found in open PRs. Exiting...`)
|
|
27
|
+
process.exit(1)
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
const answer = await confirm({
|
|
31
|
+
message: `Are you sure you want to release this branch to production: ${selectedReleaseBranch}?`,
|
|
32
|
+
})
|
|
33
|
+
|
|
34
|
+
if (!answer) {
|
|
35
|
+
console.log('Operation cancelled. Exiting...')
|
|
36
|
+
process.exit(0)
|
|
37
|
+
}
|
|
38
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ghReleaseDelivery } from './gh-release-delivery'
|
package/src/entry/main.ts
CHANGED
|
@@ -1,30 +1,33 @@
|
|
|
1
1
|
import { Command } from 'commander'
|
|
2
2
|
|
|
3
|
-
import { ghCreateRelease } from '../commands/gh-create-release'
|
|
4
3
|
import { ghDeploy } from '../commands/gh-deploy'
|
|
5
4
|
import { ghMergeDev } from '../commands/gh-merge-dev'
|
|
5
|
+
import { ghReleaseCreate } from '../commands/gh-release-create'
|
|
6
6
|
|
|
7
7
|
const program = new Command()
|
|
8
8
|
|
|
9
9
|
program
|
|
10
10
|
.command('deploy')
|
|
11
11
|
.description('Deploy any release branch to any environment')
|
|
12
|
-
.
|
|
13
|
-
|
|
12
|
+
.option('-v, --version <version>', 'Specify the version to deploy, e.g. 1.2.5')
|
|
13
|
+
.action(async (options) => {
|
|
14
|
+
await ghDeploy({ version: options.version })
|
|
14
15
|
})
|
|
15
16
|
|
|
16
17
|
program
|
|
17
|
-
.command('create
|
|
18
|
+
.command('release-create')
|
|
18
19
|
.description('Create a new release branch')
|
|
19
20
|
.action(async () => {
|
|
20
|
-
await
|
|
21
|
+
await ghReleaseCreate()
|
|
21
22
|
})
|
|
22
23
|
|
|
23
24
|
program
|
|
24
25
|
.command('merge-dev')
|
|
25
26
|
.description('Merge dev branch into every release branch')
|
|
26
|
-
.
|
|
27
|
-
|
|
27
|
+
.option('-a, --all', 'Select all release branches')
|
|
28
|
+
.option('-y, --yes', 'Skip confirmation prompt')
|
|
29
|
+
.action(async (options) => {
|
|
30
|
+
await ghMergeDev({ all: options.all, yes: options.yes })
|
|
28
31
|
})
|
|
29
32
|
|
|
30
|
-
program.parse(
|
|
33
|
+
program.parse()
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import process from 'node:process'
|
|
1
2
|
import { $ } from 'zx'
|
|
2
3
|
|
|
3
4
|
/**
|
|
@@ -6,16 +7,16 @@ import { $ } from 'zx'
|
|
|
6
7
|
export const validateGitHubCliAndAuth = async () => {
|
|
7
8
|
try {
|
|
8
9
|
await $`gh --version`
|
|
9
|
-
} catch (error) {
|
|
10
|
-
console.error('Error: GitHub CLI (gh) is not installed.')
|
|
10
|
+
} catch (error: unknown) {
|
|
11
|
+
console.error('Error: GitHub CLI (gh) is not installed.', (error as Error)?.message)
|
|
11
12
|
console.error('Please install it from: https://cli.github.com/')
|
|
12
13
|
process.exit(1)
|
|
13
14
|
}
|
|
14
15
|
|
|
15
16
|
try {
|
|
16
17
|
await $`gh auth status`
|
|
17
|
-
} catch (error) {
|
|
18
|
-
console.error('Error: GitHub CLI (gh) is not authenticated.')
|
|
18
|
+
} catch (error: unknown) {
|
|
19
|
+
console.error('Error: GitHub CLI (gh) is not authenticated.', (error as Error)?.message)
|
|
19
20
|
console.error('Please authenticate it from: https://cli.github.com/manual/gh_auth_login or type "gh auth login"')
|
|
20
21
|
process.exit(1)
|
|
21
22
|
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import process from 'node:process'
|
|
2
|
+
import { $ } from 'zx'
|
|
3
|
+
|
|
4
|
+
interface ReleasePR {
|
|
5
|
+
headRefName: string
|
|
6
|
+
number: number
|
|
7
|
+
state: string
|
|
8
|
+
title: string
|
|
9
|
+
baseRefName: string
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* Fetch open release PRs from GitHub with 'Release' in the title and base 'dev'.
|
|
14
|
+
* Returns an array of headRefName strings.
|
|
15
|
+
* Throws an error if fetching fails.
|
|
16
|
+
*/
|
|
17
|
+
export const getReleasePRs = async (): Promise<string[]> => {
|
|
18
|
+
try {
|
|
19
|
+
// Example of releasePRs.output: {"headRefName":"release/v1.8.0","number":665,"state":"OPEN","title":"WIP Release/v1.8.0"}
|
|
20
|
+
const releasePRs =
|
|
21
|
+
await $`gh pr list --search "Release in:title" --base dev --json number,title,headRefName,state,baseRefName`
|
|
22
|
+
|
|
23
|
+
const releasePRsArray: ReleasePR[] = JSON.parse(releasePRs.stdout)
|
|
24
|
+
|
|
25
|
+
if (releasePRsArray.length === 0) {
|
|
26
|
+
console.error('❌ No release PRs found. Check the project folder for the script. Exiting...')
|
|
27
|
+
process.exit(1)
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
return releasePRsArray.map((pr) => pr.headRefName)
|
|
31
|
+
} catch (error) {
|
|
32
|
+
console.error('❌ Error fetching release PRs:', error instanceof Error ? error.message : String(error))
|
|
33
|
+
process.exit(1)
|
|
34
|
+
}
|
|
35
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { getReleasePRs } from './gh-release-prs'
|
package/tsconfig.json
CHANGED
|
@@ -5,13 +5,12 @@
|
|
|
5
5
|
"incremental": true,
|
|
6
6
|
"composite": true,
|
|
7
7
|
"target": "ESNext",
|
|
8
|
-
"
|
|
9
|
-
"lib": ["DOM", "DOM.Iterable", "ESNext"],
|
|
8
|
+
"lib": ["ESNext"],
|
|
10
9
|
"baseUrl": ".",
|
|
11
10
|
"module": "ESNext",
|
|
12
|
-
"moduleResolution": "
|
|
11
|
+
"moduleResolution": "node",
|
|
13
12
|
"resolveJsonModule": true,
|
|
14
|
-
"types": ["node"
|
|
13
|
+
"types": ["node"],
|
|
15
14
|
"allowJs": true,
|
|
16
15
|
"strict": true,
|
|
17
16
|
"strictBindCallApply": true,
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { ghCreateRelease } from './gh-create-release'
|