Saltar al contenido principal

Private Registry (Verdaccio)

Configure a private npm registry using Verdaccio for managing internal packages.

Overviewโ€‹

Ever Gauzy uses Verdaccio as a private npm registry at packages.ever.co for distributing internal packages securely.

Registry URLโ€‹

https://registry.npmjs.org  โ†’  https://packages.ever.co

Docker Configurationโ€‹

Add the following to Dockerfiles that run yarn install:

ARG VERDACCIO_TOKEN
ENV VERDACCIO_TOKEN=${VERDACCIO_TOKEN}

RUN echo "//packages.ever.co/:_authToken=${VERDACCIO_TOKEN}" > .npmrc && \
echo "@ever-co:registry=https://packages.ever.co" >> .npmrc && \
echo "always-auth=true" >> .npmrc

GitHub Actionsโ€‹

Configure in CI/CD workflows:

- name: Configure private registry
run: |
echo "//packages.ever.co/:_authToken=${{ secrets.VERDACCIO_TOKEN }}" >> .npmrc
echo "@ever-co:registry=https://packages.ever.co" >> .npmrc
echo "always-auth=true" >> .npmrc

Token Managementโ€‹

ItemDescription
Token NameVERDACCIO_TOKEN
Token TypeLong-lived authentication token
StorageGitHub Secrets
ScopeOrganization-level

Troubleshootingโ€‹

401 Unauthorizedโ€‹

If you get 401 errors when downloading tarballs:

  1. Ensure always-auth=true is set in .npmrc
  2. Verify the token is not expired
  3. Check that the token has read access to the packages