ci: Switch from GitLab Package Registry to npmjs for publishing

This commit is contained in:
Lukas May
2026-03-06 16:39:18 +01:00
parent cb95ac1c6e
commit 85f5f77927
3 changed files with 5 additions and 15 deletions

View File

@@ -10,9 +10,7 @@ semantic-release:
- echo "$SSH_PRIVATE_KEY" > ~/.ssh/id_ed25519
- ssh-keyscan -H gitlab.com >> ~/.ssh/known_hosts
- chmod 600 ~/.ssh/id_ed25519
- |
echo "@carealytix:registry=${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/npm/" >> .npmrc
echo "//${CI_SERVER_HOST}/api/v4/projects/${CI_PROJECT_ID}/packages/npm/:_authToken=${CI_JOB_TOKEN}" >> .npmrc
- echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" >> .npmrc
- npm install
- npm run build
script:

View File

@@ -30,18 +30,6 @@ Codewalkers coordinates agents from different providers (Claude, Codex, Gemini,
### Install
**1. Configure your `.npmrc` to use the GitLab Package Registry:**
```sh
# Project-level .npmrc (recommended) — or add to ~/.npmrc for global config
@carealytix:registry=https://gitlab.com/api/v4/projects/<PROJECT_ID>/packages/npm/
//gitlab.com/api/v4/projects/<PROJECT_ID>/packages/npm/:_authToken=<YOUR_TOKEN>
```
Replace `<PROJECT_ID>` with the GitLab project ID and `<YOUR_TOKEN>` with a personal access token (scope: `read_api`) or deploy token.
**2. Install globally:**
```sh
npm install -g @carealytix/codewalkers
```

View File

@@ -8,6 +8,10 @@
"url": "git@gitlab.com:carealytix/tools/codewalkers.git"
},
"license": "UNLICENSED",
"publishConfig": {
"registry": "https://registry.npmjs.org/",
"access": "restricted"
},
"workspaces": [
"apps/*",
"packages/*"