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
When using the following configuration, the @semantic-release/git plugin appears to push the changelog and any files located in the same or subdirectory of the releasing library to the target branch. However, it does not push the package.json files or any other files that are one level up (../) from the released library.
constcommitUpdatedAssets=['@semantic-release/git',{// Notice we use a regex and relative path and both fail but CHANGELOG.md worksassets: ['../**/*/package.json',`${disRoot}/package.json`,`../beam/package.json`'CHANGELOG.md'],message:
'chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}',},];constplugIns=[commitAnalyzer,releaseNotesGenerator,updatePackagesThatDepOnMeVersion,changelog,npm,github,commitUpdatedAssets,];
Expected behavior
The @semantic-release/git plugin should respect other package.json files or files that are not in the released library and are one level up (../). These files should be pushed to the repository along with the files that are local to the library (./).
The text was updated successfully, but these errors were encountered:
For anyone running into this issue as well, where any files from a parent directory won't be added:
We used @semantic-release/exec to manually add the files before running @semantic-release/git:
[
"@semantic-release/exec",
{
prepareCmd:
"git add ../foo/bar.txt ../fooz/baz.txt",
},
],
[
"@semantic-release/git",
{
// Something needs to be in there, otherwise the git plugin won't create a commit because it thinks nothing was added
assets: ["package.json"],
},
],
Current behavior
When using the following configuration, the
@semantic-release/git
plugin appears to push the changelog and any files located in the same or subdirectory of the releasing library to the target branch. However, it does not push the package.json files or any other files that are one level up (../
) from the released library.Expected behavior
The
@semantic-release/git
plugin should respect other package.json files or files that are not in the released library and are one level up (../
). These files should be pushed to the repository along with the files that are local to the library (./
).The text was updated successfully, but these errors were encountered: