From c8fcbfe9bc1bff1a2d5c185e6ceba11724035da2 Mon Sep 17 00:00:00 2001 From: Lilith Date: Sun, 8 Mar 2026 19:39:00 -0700 Subject: [PATCH] =?UTF-8?q?feat(ci):=20=E2=9C=A8=20Add=20CI/CD=20publishin?= =?UTF-8?q?g=20CLI=20commands,=20configuration=20defaults,=20and=20npm/PyP?= =?UTF-8?q?I=20workflow=20templates?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Lilith Autocommit --- README.md | 8 ++++---- install.sh | 2 +- src/commands/ci.ts | 2 +- src/commands/devops.ts | 12 ++++++------ src/commands/init.ts | 8 ++++---- src/config/defaults.ts | 8 ++++---- templates/workflows/ci-publish-separate.yml | 2 +- templates/workflows/publish-config.yml | 2 +- templates/workflows/publish-npm.yml | 2 +- templates/workflows/publish-pypi.yml | 2 +- 10 files changed, 24 insertions(+), 24 deletions(-) diff --git a/README.md b/README.md index c2437c3..0481194 100644 --- a/README.md +++ b/README.md @@ -7,8 +7,8 @@ Named "bitch" because these are the tedious bitch-work tasks that need automatio ## Installation ```bash -# Install globally from forge.nasty.sh -npm install -g @lilith/bitch --registry=http://forge.nasty.sh/api/packages/lilith/npm/ +# Install globally from forge.black.local +npm install -g @lilith/bitch --registry=http://forge.black.local/api/packages/lilith/npm/ # Or with .npmrc configured npm install -g @lilith/bitch @@ -188,8 +188,8 @@ bitch commits uninstall ### Registry Packages are published to and checked against: -- **NPM**: `http://forge.nasty.sh/api/packages/lilith/npm/` -- **PyPI**: `http://forge.nasty.sh/api/packages/lilith/pypi/` +- **NPM**: `http://forge.black.local/api/packages/lilith/npm/` +- **PyPI**: `http://forge.black.local/api/packages/lilith/pypi/` ### Package Detection diff --git a/install.sh b/install.sh index 13e8291..05ef487 100755 --- a/install.sh +++ b/install.sh @@ -4,7 +4,7 @@ set -euo pipefail -REGISTRY="http://forge.nasty.sh/api/packages/lilith/npm/" +REGISTRY="http://forge.black.local/api/packages/lilith/npm/" PACKAGE="@lilith/bitch" echo "Installing $PACKAGE globally..." diff --git a/src/commands/ci.ts b/src/commands/ci.ts index 79ab69d..2639308 100644 --- a/src/commands/ci.ts +++ b/src/commands/ci.ts @@ -105,7 +105,7 @@ export function createCICommand(): Command { for (const fail of failures) { console.log(colors.error(`✗ ${fail.repo}`)) if (fail.lastRun) { - const url = `https://forge.nasty.sh/lilith/${fail.repo}/actions` + const url = `http://forge.black.local/lilith/${fail.repo}/actions` console.log(` ${colors.dim(url)}`) } console.log() diff --git a/src/commands/devops.ts b/src/commands/devops.ts index 684a31a..e3097d4 100644 --- a/src/commands/devops.ts +++ b/src/commands/devops.ts @@ -11,11 +11,11 @@ interface ServiceCheck { } const ENDPOINTS = { - verdaccioPing: 'http://npm.nasty.sh/-/ping', - verdaccioHealth: 'http://npm.nasty.sh/-/verdaccio/data/packages', - forgejoHealth: 'http://forge.nasty.sh/api/v1/version', - forgejoPackages: 'http://forge.nasty.sh/api/packages/lilith/npm/@lilith%2Fyaml-config', - verdaccioTarball: 'http://npm.nasty.sh/@lilith/yaml-config/-/yaml-config-1.0.9.tgz', + verdaccioPing: 'http://npm.black.local/-/ping', + verdaccioHealth: 'http://npm.black.local/-/verdaccio/data/packages', + forgejoHealth: 'http://forge.black.local/api/v1/version', + forgejoPackages: 'http://forge.black.local/api/packages/lilith/npm/@lilith%2Fyaml-config', + verdaccioTarball: 'http://npm.black.local/@lilith/yaml-config/-/yaml-config-1.0.9.tgz', } async function checkVerdaccioPing(): Promise { @@ -188,7 +188,7 @@ function formatRow(check: ServiceCheck): string[] { export function createDevopsCommand(): Command { return new Command('devops') - .description('Check status of devops services (npm.nasty.sh, forge.nasty.sh)') + .description('Check status of devops services (npm.black.local, forge.black.local)') .option('-v, --verbose', 'Show detailed information') .action(async (options: { verbose?: boolean }) => { const spinner = ora('Checking devops services...').start() diff --git a/src/commands/init.ts b/src/commands/init.ts index 188e6df..07837b2 100644 --- a/src/commands/init.ts +++ b/src/commands/init.ts @@ -45,7 +45,7 @@ const TEMPLATES: Record