Skip to content

Commit

Permalink
fix(ci): bump-version.js logs out modified files paths (#3214)
Browse files Browse the repository at this point in the history
  • Loading branch information
krystofwoldrich authored Jul 27, 2023
1 parent e4212f4 commit 0c6c447
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions scripts/version-bump.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,14 @@ replace({
from: /\d+\.\d+.\d+(?:-\w+(?:\.\w+)?)?/g,
to: pjson.version,
})
.then((changedFiles) => {
console.log('Modified files:', changedFiles.join(', '));
.then(matchedFiles => {
const modifiedFiles =
matchedFiles
.filter(file => file.hasChanged)
.map(file => file.file)
.join(', ') || 'none';
console.log('Modified files:', modifiedFiles);
})
.catch((error) => {
.catch(error => {
console.error('Error occurred:', error);
});

0 comments on commit 0c6c447

Please sign in to comment.