Skip to content

ci: use npm exec instead of npx - #21

Merged
chaitanyapotti merged 3 commits into
masterfrom
ci/use-npm-exec-over-npx
Nov 5, 2026
Merged

chaitanyapotti merged 3 commits into
masterfrom
ci/use-npm-exec-over-npx

Conversation

@chaitanyapotti

Copy link
Copy Markdown
Member

Jira Link

Description

Replace the three npx calls in .github/workflows/ci.yml with npm exec --:

  • npx --no-install harden check → npm exec -- harden check
  • npx playwright install-deps webkit → npm exec -- playwright install-deps webkit
  • npx playwright install → npm exec -- playwright install

npm exec does not support --no-install. All three binaries are local devDependencies, so npm exec runs them without fetching anything. The existing changeset step already uses npm exec.

How has this been tested?

  • Ran npm exec -- harden check --package-manager npm --level moderate locally: exit 0.
  • Confirmed npm exec -- playwright --version resolves locally.
  • CI on this PR.

Screenshots (if appropriate)

N/A

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Checklist

  • My code follows the code style of this project. (run lint)
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

@chaitanyapotti
chaitanyapotti requested a review from a team as a code owner November 5, 2026 11:55
@chaitanyapotti
chaitanyapotti merged commit 7e1054d into master Nov 5, 2026
13 checks passed
@chaitanyapotti
chaitanyapotti deleted the ci/use-npm-exec-over-npx branch November 5, 2026 12:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants