Skip to content

[Support] min-release-age for npm ci #9281

Closed

Description

@pealtrufo

Hi

Is min-release-age feature not available for npm ci? I can't see it in the documentation, and testing locally it doesn't seem to work so I am assuming it isn't. Is there any plans to add it?

Thanks

Activity

  1. owlstronaut commented on Apr 28, 2026

    @owlstronaut

    npm ci installs the lockfile verbatim and doesn't perform resolution, so min-release-age has no effect. Use npm install --min-release-age=N when generating/updating the lockfile.

  2. pealtrufo commented on Apr 29, 2026

    @pealtrufo
    Author

    Thanks @owlstronaut
    What if the lockfile was generated locally without min-release-age and I want to ensure in my pipeline that the cooldown period is applied when installing with npm ci?

  3. owlstronaut commented on May 4, 2026

    @owlstronaut

    That is currently a hole in the process. I considered adding something like that to the audit command, but it's a pretty expensive operation, particularly in CI - it means for each package in a tree, hitting the registry and seeing if it meets the requirement, and then you are hitting the registry again in the install step. I don't have a current good answer for your workflow outside of making sure what you commit is a package-lock generated with the min-release-age setup.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions