Skip to content

build: use npm ci instead of npm install in publish workflow #98

@iamfj

Description

@iamfj

Spotted by Copilot in PR #92 — the publish workflow (publish.yml) uses npm install instead of npm ci for its "Clean install" step (line 54).

In CI/publish pipelines, npm ci is preferred because it:

  • Ensures deterministic installs from the lockfile
  • Prevents accidental lockfile drift
  • Fails fast if package-lock.json is out of sync with package.json
  • Is faster (deletes node_modules and does a clean install)

The CI workflow (ci.yml) already uses npm ci correctly in both jobs.

Fix: Change npm installnpm ci in .github/workflows/publish.yml, line 54.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions