Skip to content

Commit 7e1054d

Browse files
Merge pull request #21 from MetaMask/ci/use-npm-exec-over-npx
ci: use npm exec instead of npx
2 parents e6eeb09 + 2465a3f commit 7e1054d

2 files changed

Lines changed: 19 additions & 9 deletions

File tree

‎.github/dependabot.yml‎

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,16 @@
11
version: 2
2+
23
updates:
3-
# Enable version updates for npm
4-
- package-ecosystem: "npm"
5-
# Look for `package.json` and `lock` files in the `root` directory
6-
directory: "/"
7-
# Check the npm registry for updates every day (weekdays)
4+
- package-ecosystem: npm
5+
directory: /
86
schedule:
9-
interval: "daily"
7+
interval: weekly
8+
cooldown:
9+
default-days: 3
10+
open-pull-requests-limit: 10
11+
- package-ecosystem: github-actions
12+
directory: /
13+
schedule:
14+
interval: weekly
15+
cooldown:
16+
default-days: 3

‎.github/workflows/ci.yml‎

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ on:
66

77
name: Run Tests
88

9+
permissions:
10+
contents: read
11+
912
jobs:
1013
test:
1114
name: run tests
@@ -36,7 +39,7 @@ jobs:
3639
run: npm ci
3740

3841
- name: Check dependency hardening
39-
run: npx --no-install harden check --package-manager npm --level moderate
42+
run: npm exec -- harden check --package-manager npm --level moderate
4043

4144
- name: Check format, lint, and types
4245
run: npm run check
@@ -45,10 +48,10 @@ jobs:
4548
run: npm run typecheck
4649

4750
- name: Install playwright webkit
48-
run: npx playwright install-deps webkit
51+
run: npm exec -- playwright install-deps webkit
4952

5053
- name: Install browsers
51-
run: npx playwright install
54+
run: npm exec -- playwright install
5255

5356
- name: Run tests
5457
run: npm run test

0 commit comments

Comments
 (0)