Skip to content

Commit 6e7f641

Browse files
committed
chore: define proper path for lint:ci
1 parent fd135cd commit 6e7f641

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.github/workflows/test.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,9 @@ jobs:
6868
node-version: 22.x
6969
workspace: "${{ matrix.module }}"
7070
- name: Code linting
71-
run: npm run lint:ci --workspace ${{ steps.npm-install.outputs.workspace_path }}
71+
env:
72+
WORKSPACE_PATH: ${{ steps.npm-install.outputs.workspace_path }}
73+
run: npm run lint:ci
7274

7375
smoke-test:
7476
# only run if there are modules to lint

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"test:ci": "npm run test -- --runInBand --coverage",
1313
"format": "prettier --write package.json \"packages/**/*.ts\"",
1414
"lint": "eslint --fix package.json \"packages/**/*.ts\"",
15-
"lint:ci": "eslint package.json \"./**/*.ts\" --max-warnings=0",
15+
"lint:ci": "eslint package.json \"${WORKSPACE_PATH}/**/*.ts\" --max-warnings=0",
1616
"update-deps": "npm-check-updates --workspaces --root -u",
1717
"validate-engine": "ls-engines"
1818
},

0 commit comments

Comments
 (0)