Skip to content

ci(sync): update GitHub Actions#91

Merged
alexpriv8 merged 1 commit into
masterfrom
ci/sync-github-actions-a54e5b0
Jul 22, 2026
Merged

ci(sync): update GitHub Actions#91
alexpriv8 merged 1 commit into
masterfrom
ci/sync-github-actions-a54e5b0

Conversation

@indykiteone

Copy link
Copy Markdown
Contributor

Automatically generated PR to sync GitHub Actions and related configs.

Copilot AI review requested due to automatic review settings July 22, 2026 19:26
@indykiteone
indykiteone requested a review from a team July 22, 2026 19:26

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This PR updates the shared pre-commit composite action to better support repositories where Node lockfiles and package.json are not located at the repository root, by detecting nested lockfiles and installing Node dependencies from the corresponding directory.

Changes:

  • Detect pnpm-lock.yaml / package-lock.json / npm-shrinkwrap.json / yarn.lock anywhere in the repo (excluding node_modules) and derive a NODE_PM_WORKDIR.
  • Install Node dependencies from NODE_PM_WORKDIR by pushd-ing into that directory before running the selected package manager.
  • Export NODE_PM_WORKDIR from the prep step and pass it into the install script.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
.github/actions/pre-commit/script.sh Install Node dependencies in a detected working directory instead of assuming repo root.
.github/actions/pre-commit/action.yaml Detect nested Node lockfiles and export NODE_PM_WORKDIR/NODE_VERSION_FILE accordingly.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread .github/actions/pre-commit/action.yaml
Comment thread .github/actions/pre-commit/script.sh
Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@indykiteone
indykiteone force-pushed the ci/sync-github-actions-a54e5b0 branch from f8a1f50 to 5c1ccae Compare July 22, 2026 19:51
@alexpriv8
alexpriv8 merged commit e511f79 into master Jul 22, 2026
7 checks passed
@alexpriv8
alexpriv8 deleted the ci/sync-github-actions-a54e5b0 branch July 22, 2026 19:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants