Skip to content

ci: add ignore-workspace input to setup-node action and update install command - #12911

Merged
alumni merged 1 commit into
typeorm:masterfrom
Cprakhar:fix/ci-docs
Sep 30, 2026
Merged

alumni merged 1 commit into
typeorm:masterfrom
Cprakhar:fix/ci-docs

Conversation

@Cprakhar

@Cprakhar Cprakhar commented Sep 28, 2026 •

Copy link
Copy Markdown
Collaborator

Description of change

PR fixes a CI bug that was introduced after consolidating the repo in pnpm workspace #12854 - It excludes docs from the pnpm workspace.

Pull-Request Checklist

  • Code is up-to-date with the master branch
  • This pull request links a relevant issue using a closing keyword:
    Fixes #NNNN, Closes #NNNN, or Resolves #NNNN
  • There are new or updated tests validating the change (tests/**.test.ts)
  • Documentation has been updated to reflect this change (docs/docs/**.md)

Testing

#12910 Updates a documentation for test purpose, and the initial CI docs job fail

Run pnpm run build
  
  > @typeorm/[email protected] build /home/runner/work/typeorm/typeorm/docs
  > docusaurus build
  
  sh: 1: docusaurus: not found
   ELIFECYCLE  Command failed.
   WARN   Local package.json exists, but node_modules missing, did you mean to install?

After this PR: the CI docs job passes

@qodo-free-for-open-source-projects

qodo-free-for-open-source-projects Bot commented Sep 28, 2026 •

Copy link
Copy Markdown

Code Review by Qodo

🐞 Bugs (1) 📘 Rule violations (0) 📎 Requirement gaps (0) 🎨 UX issues (0) 🔗 Cross-repo conflicts (0) 📜 Skill insights (0)

Grey Divider


Remediation recommended

1. Docs action changes skip the docs check 🐞 Bug ≡ Correctness
Description
The docs change filter matches only docs/**/*, so it does not select the docs job for changes to
build-docs or setup-node. This PR changes only those actions, which triggers other checks
through the setup-node filter but leaves the documentation build untested in the PR.
Code

.github/actions/build-docs/action.yml[10]

+        ignore-workspace: true
Evidence
The docs filter covers only files under docs, while the docs job requires that filter to match.
Both files changed in this PR are under .github/actions; the separate src-or-tests filter
includes setup-node, but it does not select the docs job.

.github/workflows/tests.yml[25-35]
.github/workflows/tests.yml[47-58]
.github/workflows/tests.yml[75-82]
.github/actions/build-docs/action.yml[7-13]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
The docs CI job is skipped when either action used to build documentation changes, including in this PR.
## Fix Focus Areas
- .github/workflows/tests.yml[25-35]
- .github/workflows/tests.yml[75-82]
- .github/actions/build-docs/action.yml[7-13]
## Recommended Fix
Include changes to `.github/actions/build-docs/**` and `.github/actions/setup-node/**` in the `docs` change filter so the documentation build runs when either action changes.

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools


  • Author self-review: I have reviewed the code review findings, and addressed the relevant ones.

Grey Divider

Tip of the day
💡 Did you know, you can route each severity your way: inline, summary, both, or drop

More tips ↗ | Customize Qodo ↗ | Qodo docs ↗

Grey Divider

Qodo Logo

@alumni

alumni commented Sep 28, 2026

Copy link
Copy Markdown
Collaborator

I am thinking if we should rather make the website another package and let it share the lockfile. Monorepo tools would also be happier like that (regardless whether we put it in packages or somewhere else)

@Cprakhar

Copy link
Copy Markdown
Collaborator Author

I am thinking if we should rather make the website another package and let it share the lockfile. Monorepo tools would also be happier like that (regardless whether we put it in packages or somewhere else)

@michaelbromley excluded docs from pnpm-workspace.yml:

# `docs` is excluded: it is a Docusaurus site with a large, unrelated dependency
# tree, and it is built by its own workflow.
packages:
    - "packages/*"
    - "playground"

I am happy with either way.

@Cprakhar Cprakhar added the chore Non-user-facing maintenance: CI, lint, refactor, test scaffolding, dev tooling label Sep 28, 2026
@Cprakhar Cprakhar self-assigned this Sep 28, 2026
@alumni

alumni commented Sep 30, 2026

Copy link
Copy Markdown
Collaborator
# `docs` is excluded: it is a Docusaurus site with a large, unrelated dependency
# tree, and it is built by its own workflow.

I think for now it's okay, but it might not work with the monorepo tools. It might need to be in a different repo if we want to keep it separate. Since it's a non-standard setup, it's hard to tell what will happen - let's see later.

@alumni
alumni merged commit 5fd98ad into typeorm:master Sep 30, 2026
47 of 48 checks passed
@github-actions github-actions Bot added this to the 2.0.next milestone Sep 30, 2026
@Cprakhar Cprakhar mentioned this pull request Sep 30, 2026
1 of 4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

chore Non-user-facing maintenance: CI, lint, refactor, test scaffolding, dev tooling

Development

Successfully merging this pull request may close these issues.

2 participants