Skip to content

Commit 2fd79f0

Browse files
committed
chore(release): only git add changelog and package files
1 parent 6dc68fe commit 2fd79f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

release/prod.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ configPromise.then((config) => {
1717
newConfig.plugins.push([
1818
'@semantic-release/exec',
1919
{
20-
prepareCmd: `git diff-index --quiet HEAD -- ${process.cwd()}/* && exit 0 || (git add ${process.cwd()}/\\* && git commit -m "${commitMessage}" && git push origin master)`,
20+
prepareCmd: `git diff-index --quiet HEAD -- ${process.cwd()}/* && exit 0 || (git add ${process.cwd()}/package.json && git add ${process.cwd()}/CHANGELOG.md && git commit -m "${commitMessage}" && git push origin master)`,
2121
},
2222
]);
2323

0 commit comments

Comments
 (0)