chore(gitea): rename npm package owner ByteLyst -> learning_ai_user
This commit is contained in:
parent
59c4638f85
commit
d1d88db4dd
@ -48,7 +48,7 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
cp /run/secrets/gitea_publish_npmrc /tmp/publish.npmrc
|
cp /run/secrets/gitea_publish_npmrc /tmp/publish.npmrc
|
||||||
chmod 600 /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
|
- name: Install workspace deps
|
||||||
run: HUSKY=0 pnpm install --frozen-lockfile
|
run: HUSKY=0 pnpm install --frozen-lockfile
|
||||||
|
|||||||
@ -48,7 +48,7 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
cp /run/secrets/gitea_publish_npmrc /tmp/publish.npmrc
|
cp /run/secrets/gitea_publish_npmrc /tmp/publish.npmrc
|
||||||
chmod 600 /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
|
- name: Install workspace deps
|
||||||
run: HUSKY=0 pnpm install --frozen-lockfile
|
run: HUSKY=0 pnpm install --frozen-lockfile
|
||||||
|
|||||||
@ -55,7 +55,7 @@ jobs:
|
|||||||
chmod 600 /tmp/publish.npmrc
|
chmod 600 /tmp/publish.npmrc
|
||||||
echo "Configured registry:"
|
echo "Configured registry:"
|
||||||
sed -E 's#(_auth(Token)?=).*#\1***#; s#(//[^[:space:]]+:)_authToken=.*#\1_authToken=***#' /tmp/publish.npmrc
|
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
|
- name: Install workspace deps
|
||||||
run: HUSKY=0 pnpm install --frozen-lockfile
|
run: HUSKY=0 pnpm install --frozen-lockfile
|
||||||
|
|||||||
@ -13,7 +13,7 @@ COPY dashboards/admin-web/package.json dashboards/admin-web/
|
|||||||
|
|
||||||
RUN --mount=type=secret,id=gitea_npm_token \
|
RUN --mount=type=secret,id=gitea_npm_token \
|
||||||
TOKEN=$(cat /run/secrets/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
|
pnpm install --ignore-scripts --legacy-peer-deps
|
||||||
|
|
||||||
COPY dashboards/admin-web/ dashboards/admin-web/
|
COPY dashboards/admin-web/ dashboards/admin-web/
|
||||||
|
|||||||
@ -653,8 +653,8 @@ phase4_build() {
|
|||||||
|
|
||||||
# Configure .npmrc for the common-plat workspace (publish target)
|
# Configure .npmrc for the common-plat workspace (publish target)
|
||||||
cat > "${plat_dir}/.npmrc" <<NPMRC
|
cat > "${plat_dir}/.npmrc" <<NPMRC
|
||||||
@bytelyst:registry=http://localhost:${GITEA_PORT}/api/packages/bytelyst/npm/
|
@bytelyst:registry=http://localhost:${GITEA_PORT}/api/packages/learning_ai_user/npm/
|
||||||
//localhost:${GITEA_PORT}/api/packages/bytelyst/npm/:_authToken=${GITEA_NPM_TOKEN}
|
//localhost:${GITEA_PORT}/api/packages/learning_ai_user/npm/:_authToken=${GITEA_NPM_TOKEN}
|
||||||
strict-ssl=false
|
strict-ssl=false
|
||||||
NPMRC
|
NPMRC
|
||||||
|
|
||||||
@ -690,7 +690,7 @@ phase5_publish() {
|
|||||||
cd "$plat_dir"
|
cd "$plat_dir"
|
||||||
|
|
||||||
local published=0 skipped=0
|
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
|
for pkg_dir in packages/*/; do
|
||||||
local pkg_json="${pkg_dir}package.json"
|
local pkg_json="${pkg_dir}package.json"
|
||||||
|
|||||||
@ -47,12 +47,12 @@ REPOS=(
|
|||||||
)
|
)
|
||||||
|
|
||||||
# Minimal template for nested .npmrc (e.g. dashboard/.npmrc inside a repo)
|
# 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/
|
NPMRC_NESTED_TEMPLATE='@bytelyst:registry=http://${GITEA_NPM_HOST:-localhost}:3300/api/packages/learning_ai_user/npm/
|
||||||
//localhost:3300/api/packages/ByteLyst/npm/:_authToken=${GITEA_NPM_TOKEN}
|
//localhost:3300/api/packages/learning_ai_user/npm/:_authToken=${GITEA_NPM_TOKEN}
|
||||||
strict-ssl=false'
|
strict-ssl=false'
|
||||||
|
|
||||||
NPMRC_TEMPLATE='@bytelyst:registry=http://${GITEA_NPM_HOST:-localhost}:3300/api/packages/ByteLyst/npm/
|
NPMRC_TEMPLATE='@bytelyst:registry=http://${GITEA_NPM_HOST:-localhost}:3300/api/packages/learning_ai_user/npm/
|
||||||
//localhost:3300/api/packages/ByteLyst/npm/:_authToken=${GITEA_NPM_TOKEN}
|
//localhost:3300/api/packages/learning_ai_user/npm/:_authToken=${GITEA_NPM_TOKEN}
|
||||||
strict-ssl=false
|
strict-ssl=false
|
||||||
link-workspace-packages=true
|
link-workspace-packages=true
|
||||||
prefer-workspace-packages=true'
|
prefer-workspace-packages=true'
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
set -euo pipefail
|
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}"
|
userconfig="${PUBLISH_NPMRC:-/tmp/publish.npmrc}"
|
||||||
package_filter="${PACKAGE_FILTER:-@bytelyst/errors}"
|
package_filter="${PACKAGE_FILTER:-@bytelyst/errors}"
|
||||||
dry_run="${DRY_RUN:-false}"
|
dry_run="${DRY_RUN:-false}"
|
||||||
|
|||||||
@ -6,7 +6,7 @@ set -euo pipefail
|
|||||||
# to prevent accidental publish to npmjs.org or JFrog
|
# 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)"
|
REPO_ROOT="$(cd "$(dirname "$0")/../.." && pwd)"
|
||||||
PACKAGES_DIR="$REPO_ROOT/packages"
|
PACKAGES_DIR="$REPO_ROOT/packages"
|
||||||
|
|
||||||
|
|||||||
@ -4,7 +4,7 @@ set -euo pipefail
|
|||||||
REPO_ROOT="$(cd "$(dirname "$0")/../.." && pwd)"
|
REPO_ROOT="$(cd "$(dirname "$0")/../.." && pwd)"
|
||||||
PACKAGES_DIR="$REPO_ROOT/packages"
|
PACKAGES_DIR="$REPO_ROOT/packages"
|
||||||
TMP_DIR="${TMPDIR:-/tmp}/bytelyst-gitea-publish"
|
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="${REGISTRY_URL#http://}"
|
||||||
AUTH_TARGET="${AUTH_TARGET#https://}"
|
AUTH_TARGET="${AUTH_TARGET#https://}"
|
||||||
TOKEN="${GITEA_NPM_TOKEN:-}"
|
TOKEN="${GITEA_NPM_TOKEN:-}"
|
||||||
|
|||||||
@ -49,7 +49,7 @@ else
|
|||||||
IS_CORP=false
|
IS_CORP=false
|
||||||
fi
|
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:-}"
|
TOKEN="${GITEA_NPM_TOKEN:-}"
|
||||||
WORK_DIR="${TMPDIR:-/tmp}/bytelyst-publish-$$"
|
WORK_DIR="${TMPDIR:-/tmp}/bytelyst-publish-$$"
|
||||||
DRY_RUN=false
|
DRY_RUN=false
|
||||||
|
|||||||
@ -46,7 +46,7 @@ else
|
|||||||
IS_CORP=false
|
IS_CORP=false
|
||||||
fi
|
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="${REGISTRY_URL#http://}"
|
||||||
AUTH_TARGET="${AUTH_TARGET#https://}"
|
AUTH_TARGET="${AUTH_TARGET#https://}"
|
||||||
TOKEN="${GITEA_NPM_TOKEN:-}"
|
TOKEN="${GITEA_NPM_TOKEN:-}"
|
||||||
|
|||||||
@ -26,7 +26,7 @@ gitea_host="${GITEA_NPM_HOST:-gitea.bytelyst.com}"
|
|||||||
if [[ "$gitea_host" == "localhost" || "$gitea_host" == "127.0.0.1" ]]; then
|
if [[ "$gitea_host" == "localhost" || "$gitea_host" == "127.0.0.1" ]]; then
|
||||||
gitea_host="gitea.bytelyst.com"
|
gitea_host="gitea.bytelyst.com"
|
||||||
fi
|
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 \
|
for url in \
|
||||||
https://api.bytelyst.com/platform/health \
|
https://api.bytelyst.com/platform/health \
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
@bytelyst:registry=http://${GITEA_NPM_HOST:-localhost}:3300/api/packages/ByteLyst/npm/
|
@bytelyst:registry=http://${GITEA_NPM_HOST:-localhost}:3300/api/packages/learning_ai_user/npm/
|
||||||
//localhost:3300/api/packages/ByteLyst/npm/:_authToken=${GITEA_NPM_TOKEN}
|
//localhost:3300/api/packages/learning_ai_user/npm/:_authToken=${GITEA_NPM_TOKEN}
|
||||||
strict-ssl=false
|
strict-ssl=false
|
||||||
link-workspace-packages=true
|
link-workspace-packages=true
|
||||||
prefer-workspace-packages=true
|
prefer-workspace-packages=true
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user