Skip to content

Conversation

@chris-martin
Copy link
Contributor

Clarify the description for package_json_file parameter to specify that the path must be relative to the repository root.

If, for example, you give an absolute file path, it doesn't work, because the provided path will always be prefixed by GITHUB_WORKSPACE at

const content = readFileSync(path.join(GITHUB_WORKSPACE, packageJsonFile), 'utf8');

Clarify the description for package_json_file parameter to specify that the path must be relative to the repository root.
Copy link
Collaborator

@KSXGitHub KSXGitHub left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Alternatively, you can replace path.join with path.resolve.

@zkochan zkochan merged commit ee7b871 into pnpm:master Dec 7, 2025
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.

3 participants