chore(gitea): rename npm package owner ByteLyst -> learning_ai_user

This commit is contained in:
saravanakumardb1 2026-05-26 18:38:57 -07:00
parent 59c4638f85
commit d1d88db4dd
13 changed files with 19 additions and 19 deletions

View File

@ -48,7 +48,7 @@ jobs:
run: |
cp /run/secrets/gitea_publish_npmrc /tmp/publish.npmrc
chmod 600 /tmp/publish.npmrc
npm whoami --userconfig /tmp/publish.npmrc --registry https://gitea.bytelyst.com/api/packages/bytelyst/npm/
npm whoami --userconfig /tmp/publish.npmrc --registry https://gitea.bytelyst.com/api/packages/learning_ai_user/npm/
- name: Install workspace deps
run: HUSKY=0 pnpm install --frozen-lockfile

View File

@ -48,7 +48,7 @@ jobs:
run: |
cp /run/secrets/gitea_publish_npmrc /tmp/publish.npmrc
chmod 600 /tmp/publish.npmrc
npm whoami --userconfig /tmp/publish.npmrc --registry https://gitea.bytelyst.com/api/packages/bytelyst/npm/
npm whoami --userconfig /tmp/publish.npmrc --registry https://gitea.bytelyst.com/api/packages/learning_ai_user/npm/
- name: Install workspace deps
run: HUSKY=0 pnpm install --frozen-lockfile

View File

@ -55,7 +55,7 @@ jobs:
chmod 600 /tmp/publish.npmrc
echo "Configured registry:"
sed -E 's#(_auth(Token)?=).*#\1***#; s#(//[^[:space:]]+:)_authToken=.*#\1_authToken=***#' /tmp/publish.npmrc
npm whoami --userconfig /tmp/publish.npmrc --registry https://gitea.bytelyst.com/api/packages/bytelyst/npm/
npm whoami --userconfig /tmp/publish.npmrc --registry https://gitea.bytelyst.com/api/packages/learning_ai_user/npm/
- name: Install workspace deps
run: HUSKY=0 pnpm install --frozen-lockfile

View File

@ -13,7 +13,7 @@ COPY dashboards/admin-web/package.json dashboards/admin-web/
RUN --mount=type=secret,id=gitea_npm_token \
TOKEN=$(cat /run/secrets/gitea_npm_token) && \
printf '@bytelyst:registry=http://localhost:3300/api/packages/bytelyst/npm/\n//localhost:3300/api/packages/bytelyst/npm/:_authToken=%s\n' "$TOKEN" > .npmrc && \
printf '@bytelyst:registry=http://localhost:3300/api/packages/learning_ai_user/npm/\n//localhost:3300/api/packages/learning_ai_user/npm/:_authToken=%s\n' "$TOKEN" > .npmrc && \
pnpm install --ignore-scripts --legacy-peer-deps
COPY dashboards/admin-web/ dashboards/admin-web/

View File

@ -653,8 +653,8 @@ phase4_build() {
# Configure .npmrc for the common-plat workspace (publish target)
cat > "${plat_dir}/.npmrc" <<NPMRC
@bytelyst:registry=http://localhost:${GITEA_PORT}/api/packages/bytelyst/npm/
//localhost:${GITEA_PORT}/api/packages/bytelyst/npm/:_authToken=${GITEA_NPM_TOKEN}
@bytelyst:registry=http://localhost:${GITEA_PORT}/api/packages/learning_ai_user/npm/
//localhost:${GITEA_PORT}/api/packages/learning_ai_user/npm/:_authToken=${GITEA_NPM_TOKEN}
strict-ssl=false
NPMRC
@ -690,7 +690,7 @@ phase5_publish() {
cd "$plat_dir"
local published=0 skipped=0
local registry_url="http://localhost:${GITEA_PORT}/api/packages/bytelyst/npm/"
local registry_url="http://localhost:${GITEA_PORT}/api/packages/learning_ai_user/npm/"
for pkg_dir in packages/*/; do
local pkg_json="${pkg_dir}package.json"

View File

@ -47,12 +47,12 @@ REPOS=(
)
# Minimal template for nested .npmrc (e.g. dashboard/.npmrc inside a repo)
NPMRC_NESTED_TEMPLATE='@bytelyst:registry=http://${GITEA_NPM_HOST:-localhost}:3300/api/packages/ByteLyst/npm/
//localhost:3300/api/packages/ByteLyst/npm/:_authToken=${GITEA_NPM_TOKEN}
NPMRC_NESTED_TEMPLATE='@bytelyst:registry=http://${GITEA_NPM_HOST:-localhost}:3300/api/packages/learning_ai_user/npm/
//localhost:3300/api/packages/learning_ai_user/npm/:_authToken=${GITEA_NPM_TOKEN}
strict-ssl=false'
NPMRC_TEMPLATE='@bytelyst:registry=http://${GITEA_NPM_HOST:-localhost}:3300/api/packages/ByteLyst/npm/
//localhost:3300/api/packages/ByteLyst/npm/:_authToken=${GITEA_NPM_TOKEN}
NPMRC_TEMPLATE='@bytelyst:registry=http://${GITEA_NPM_HOST:-localhost}:3300/api/packages/learning_ai_user/npm/
//localhost:3300/api/packages/learning_ai_user/npm/:_authToken=${GITEA_NPM_TOKEN}
strict-ssl=false
link-workspace-packages=true
prefer-workspace-packages=true'

View File

@ -1,7 +1,7 @@
#!/usr/bin/env bash
set -euo pipefail
registry="${PUBLISH_REGISTRY:-https://gitea.bytelyst.com/api/packages/bytelyst/npm/}"
registry="${PUBLISH_REGISTRY:-https://gitea.bytelyst.com/api/packages/learning_ai_user/npm/}"
userconfig="${PUBLISH_NPMRC:-/tmp/publish.npmrc}"
package_filter="${PACKAGE_FILTER:-@bytelyst/errors}"
dry_run="${DRY_RUN:-false}"

View File

@ -6,7 +6,7 @@ set -euo pipefail
# to prevent accidental publish to npmjs.org or JFrog
# ─────────────────────────────────────────────────────────────
REGISTRY="https://gitea.bytelyst.com/api/packages/ByteLyst/npm/"
REGISTRY="https://gitea.bytelyst.com/api/packages/learning_ai_user/npm/"
REPO_ROOT="$(cd "$(dirname "$0")/../.." && pwd)"
PACKAGES_DIR="$REPO_ROOT/packages"

View File

@ -4,7 +4,7 @@ set -euo pipefail
REPO_ROOT="$(cd "$(dirname "$0")/../.." && pwd)"
PACKAGES_DIR="$REPO_ROOT/packages"
TMP_DIR="${TMPDIR:-/tmp}/bytelyst-gitea-publish"
REGISTRY_URL="${GITEA_NPM_REGISTRY_URL:-http://${GITEA_NPM_HOST:-localhost}:3300/api/packages/ByteLyst/npm/}"
REGISTRY_URL="${GITEA_NPM_REGISTRY_URL:-http://${GITEA_NPM_HOST:-localhost}:3300/api/packages/learning_ai_user/npm/}"
AUTH_TARGET="${REGISTRY_URL#http://}"
AUTH_TARGET="${AUTH_TARGET#https://}"
TOKEN="${GITEA_NPM_TOKEN:-}"

View File

@ -49,7 +49,7 @@ else
IS_CORP=false
fi
REGISTRY_URL="${GITEA_NPM_REGISTRY_URL:-${GITEA_BASE}/api/packages/bytelyst/npm/}"
REGISTRY_URL="${GITEA_NPM_REGISTRY_URL:-${GITEA_BASE}/api/packages/learning_ai_user/npm/}"
TOKEN="${GITEA_NPM_TOKEN:-}"
WORK_DIR="${TMPDIR:-/tmp}/bytelyst-publish-$$"
DRY_RUN=false

View File

@ -46,7 +46,7 @@ else
IS_CORP=false
fi
REGISTRY_URL="${GITEA_NPM_REGISTRY_URL:-${GITEA_BASE}/api/packages/bytelyst/npm/}"
REGISTRY_URL="${GITEA_NPM_REGISTRY_URL:-${GITEA_BASE}/api/packages/learning_ai_user/npm/}"
AUTH_TARGET="${REGISTRY_URL#http://}"
AUTH_TARGET="${AUTH_TARGET#https://}"
TOKEN="${GITEA_NPM_TOKEN:-}"

View File

@ -26,7 +26,7 @@ gitea_host="${GITEA_NPM_HOST:-gitea.bytelyst.com}"
if [[ "$gitea_host" == "localhost" || "$gitea_host" == "127.0.0.1" ]]; then
gitea_host="gitea.bytelyst.com"
fi
gitea_registry_url="https://${gitea_host}/api/packages/ByteLyst/npm/@bytelyst%2ferrors"
gitea_registry_url="https://${gitea_host}/api/packages/learning_ai_user/npm/@bytelyst%2ferrors"
for url in \
https://api.bytelyst.com/platform/health \

View File

@ -1,5 +1,5 @@
@bytelyst:registry=http://${GITEA_NPM_HOST:-localhost}:3300/api/packages/ByteLyst/npm/
//localhost:3300/api/packages/ByteLyst/npm/:_authToken=${GITEA_NPM_TOKEN}
@bytelyst:registry=http://${GITEA_NPM_HOST:-localhost}:3300/api/packages/learning_ai_user/npm/
//localhost:3300/api/packages/learning_ai_user/npm/:_authToken=${GITEA_NPM_TOKEN}
strict-ssl=false
link-workspace-packages=true
prefer-workspace-packages=true