Skip to content

Commit d15200a

Browse files
committed
ci: add node_modules/.bin to PATH in init actions
Why: pkglab is a devDependency installed by pnpm, but CI workflow steps couldn't find it because node_modules/.bin isn't in PATH by default. Integration tests that run pkglab from temp directories outside the repo also need it accessible without pnpm exec.
1 parent 139b6d4 commit d15200a

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

.github/actions/init-blacksmith/action.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,10 @@ runs:
119119
run: pnpm install
120120
shell: bash
121121

122+
- name: Add node_modules/.bin to PATH
123+
run: echo "$GITHUB_WORKSPACE/node_modules/.bin" >> $GITHUB_PATH
124+
shell: bash
125+
122126
- name: Get Playwright Version
123127
if: inputs.playwright-enabled == 'true'
124128
shell: bash

.github/actions/init/action.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,10 @@ runs:
119119
run: pnpm install
120120
shell: bash
121121

122+
- name: Add node_modules/.bin to PATH
123+
run: echo "$GITHUB_WORKSPACE/node_modules/.bin" >> $GITHUB_PATH
124+
shell: bash
125+
122126
- name: Get Playwright Version
123127
if: inputs.playwright-enabled == 'true'
124128
shell: bash

0 commit comments

Comments
 (0)