Skip to content

Commit 15d0d59

Browse files
committed
fix: use absolute path for BUILT_MODULE to resolve import issues
- Change BUILT_MODULE from relative to absolute path using github.workspace - Fixes module resolution errors when actions/github-script tries to import - Resolves 'Cannot find module' errors in E2E tests
1 parent eb3f674 commit 15d0d59

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
# Dependencies
22
node_modules/
3-
pnpm-lock.yaml
43

54
# Build outputs
65
dist/

action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ runs:
104104
uses: actions/github-script@v8
105105
env:
106106
SCRIPT_ARGS_JSON: ${{ inputs.args }}
107-
BUILT_MODULE: ${{ inputs.working-directory }}/.github-script-build/out.mjs
107+
BUILT_MODULE: ${{ github.workspace }}/${{ inputs.working-directory }}/.github-script-build/out.mjs
108108
with:
109109
# pass through official inputs
110110
github-token: ${{ inputs.github-token || github.token }}

pnpm-lock.yaml

Lines changed: 9 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)