npm — Developer Guide
Setup
Configure Registry
bash
# Set as default registry
npm set registry https://npm.registry.hochguertel.work
# Or per-project in .npmrc
echo "registry=https://npm.registry.hochguertel.work" > .npmrcLogin
bash
npm login --registry https://npm.registry.hochguertel.work
# Opens browser → Authelia login → token saved to ~/.npmrcVerify
bash
npm whoami --registry https://npm.registry.hochguertel.workPublishing Packages
bash
# Publish a package
npm publish --registry https://npm.registry.hochguertel.work
# Publish a scoped package
npm publish --scope=@copilot-webui --registry https://npm.registry.hochguertel.workInstalling Packages
bash
# Public packages are proxied through Verdaccio
npm install lodash
# Private packages are served directly
npm install @copilot-webui/my-packageUsing in CI/CD
Create a .npmrc in your project:
ini
registry=https://npm.registry.hochguertel.work
//npm.registry.hochguertel.work/:_authToken=${NPM_TOKEN}Set NPM_TOKEN as a CI environment variable.