Skip to content

Commit 4970a92

Browse files
diff-npm-package: move report into shared 'reports' folder (#3611)
1 parent be42e7c commit 4970a92

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/pull_request.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,5 +34,5 @@ jobs:
3434
uses: actions/upload-artifact@v2
3535
with:
3636
name: npm-dist-diff.html
37-
path: ./npm-dist-diff.html
37+
path: ./reports/npm-dist-diff.html
3838
if-no-files-found: ignore

resources/diff-npm-package.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ const diff = execOutput(`npm diff --diff=${fromPackage} --diff=${toPackage}`);
3232
if (diff === '') {
3333
console.log('No changes found!');
3434
} else {
35-
const reportPath = localRepoPath('npm-dist-diff.html');
35+
const reportPath = localRepoPath('reports', 'npm-dist-diff.html');
3636
fs.writeFileSync(reportPath, generateReport(diff));
3737
console.log('Report saved to: ', reportPath);
3838
}

0 commit comments

Comments
 (0)