You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
commit with a version-affecting commit message, e.g. fix: foo
Then:
pnpm nx affected -t build (or test) will believe that no packages are affected, and no packages will be built (or tested)
pnpm nx release or const { releaseVersion } = require('nx/release'); await releaseVersion({ verbose: true }); will believe all packages are affected and attempt to publish a new version of all of them, despite there being no locally built artifacts to publish
Expected Behavior
.nxignore is respected by releaseVersion, and changes to ignored files/paths will not cause a version increment for all workspace packages.
GitHub Repo
No response
Steps to Reproduce
Have a monorepo with multiple packages under packages/*
Have at least one existing release -- because releaseVersion ignores NX_HEAD/NX_BASE and will go back to the start of your repository for relevant changes even if you want to only consider the specified HEAD and BASE
Make a change to a file in .github/, e.g. .github/dependabot.yml
Commit change with commit message fix: foo
pnpm nx affected -t build
Note that no packages are built as none have changed and .github is ignored
pnpm nx release or const { releaseVersion } = require('nx/release'); await releaseVersion({ verbose: true }); with or without dry-run flags
Note that attempt is made to release and publish a patch-incremented version of every package, which may or may not fail (depending on your packages) due to the lack of built artifacts (dist/).
It's also generally unclear as to exactly how the releaseVersion process determines the changed fileset, as it seems to use independent logic from affected and therefore this may not be the only gap between the expectations of them both working identically.
The text was updated successfully, but these errors were encountered:
Current Behavior
If you:
.github
in .nxignorefix: foo
Then:
pnpm nx affected -t build (or test)
will believe that no packages are affected, and no packages will be built (or tested)pnpm nx release
orconst { releaseVersion } = require('nx/release'); await releaseVersion({ verbose: true });
will believe all packages are affected and attempt to publish a new version of all of them, despite there being no locally built artifacts to publishExpected Behavior
.nxignore
is respected by releaseVersion, and changes to ignored files/paths will not cause a version increment for all workspace packages.GitHub Repo
No response
Steps to Reproduce
Have a monorepo with multiple packages under
packages/*
relevant parts of nx.json
.nxignore
.github/
, e.g..github/dependabot.yml
fix: foo
pnpm nx affected -t build
pnpm nx release
orconst { releaseVersion } = require('nx/release'); await releaseVersion({ verbose: true });
with or without dry-run flagsdist/
).Nx Report
Failure Logs
No response
Package Manager Version
No response
Operating System
Additional Information
It's also generally unclear as to exactly how the releaseVersion process determines the changed fileset, as it seems to use independent logic from
affected
and therefore this may not be the only gap between the expectations of them both working identically.The text was updated successfully, but these errors were encountered: