npm / yarn / pnpm / bun
Avrea caches packages from the npm registry (and other configured registries) so
that npm install, yarn install, pnpm install, and bun install resolve
from local storage on repeat runs.
On Avrea runners
Section titled “On Avrea runners”The registry URL is pre-configured:
npm_config_registry="https://avrea-host:8443/npm/"This applies to npm, pnpm, yarn classic (v1), and bun. Your workflow needs no changes:
jobs: build: runs-on: avrea-ubuntu-latest steps: - uses: actions/checkout@v6 - uses: actions/setup-node@v6 with: node-version: 24 cache: 'npm' - run: npm ciManual setup
Section titled “Manual setup”npm config set registry https://avrea-host:8443/npm/pnpm config set registry https://avrea-host:8443/npm/yarn config set registry https://avrea-host:8443/npm/Bun respects the npm_config_registry environment variable, so no bunfig.toml
is needed on Avrea runners. For manual setup outside Avrea:
npm_config_registry="https://avrea-host:8443/npm/"Or add to bunfig.toml:
[install]registry = "https://avrea-host:8443/npm/"