Skip to content

[DOCS] Add per-CI-provider / hosted-environment auth guidance for npm, pnpm, yarn users (GitHub Actions, Vercel, agent sandboxes) #1848

Closed

Description

@ruy-bot

📚 Documentation

The registry docs only cover CI for the vlt CLI (registry/using-packages.mdx "Installing in CI", registry/tokens.mdx "Using tokens in CI"), and that recipe is currently broken (#1844, #1845). Users of npm / pnpm / yarn / bun / deno get one .npmrc snippet and nothing about where the token has to come from on each platform.

An end user migrating a pnpm monorepo reported having to rediscover, per platform, that:

The bun and deno Quick Start tabs also use $VLT_TOKEN / ${VLT_TOKEN} as the placeholder, and cli/auth.mdx documents VLT_TOKEN for the CLI, which primes the expectation that VLT_TOKEN is a universal mechanism.

Proposed change

Add a "CI and hosted environments" section (or page) with a per-provider matrix:

  • GitHub Actions: vlt CLI → VLT_TOKEN_* once [BUG] VLT_TOKEN_<registry> env vars are ignored by vlt install (documented CI auth recipe sends no Authorization header) #1844 is fixed; npm/yarn → project .npmrc with ${VAR}; pnpm ≥ 11 → user-level .npmrc or PNPM_CONFIG_NPMRC_AUTH_FILE (see the pnpm ≥ 11 issue).
  • Vercel: NPM_RC / NPM_TOKEN, keep a registry.npmjs.org line.
  • Coding-agent sandboxes (Cursor, Claude Code, Devin, Codespaces): a checklist — secret name, .npmrc / vlt.json location, scope for main registry.
  • A one-line statement of who reads what: only the vlt CLI reads VLT_TOKEN / VLT_TOKEN_*; npm, pnpm, yarn, npx and Vercel only read .npmrc. Rename the placeholder in the bun/deno tabs so it does not look like a vlt-specific variable, or say so explicitly.

Source: end-user feedback triage of a pnpm monorepo migration to registry.vlt.io (2026-09-11).

Activity

  1. added
    documentation
    on Sep 14, 2026
  2. ruy-bot commented on Sep 14, 2026

    @ruy-bot
    ContributorAuthor

    Related: #1847 (pnpm ≥ 11 drops ${VAR} in project .npmrc), #1846 (keep the lockfile), #1849 (auth is required to install, not just publish), #1850 (pnpm ≤ 10 and pnpm-workspace.yaml).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationregistry

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions