Skip to content

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.

The registry URL is pre-configured:

Terminal window
npm_config_registry="https://avrea-host:8443/npm/"

This applies to npm, pnpm, yarn classic (v1), and bun. Your workflow needs no changes:

workflow.yml
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 ci
Terminal window
npm config set registry https://avrea-host:8443/npm/