Skip to content

Commit

Permalink
chore: add all files to git when publishing new version
Browse files Browse the repository at this point in the history
  • Loading branch information
ghiscoding committed Nov 1, 2023
1 parent 56a3373 commit 5140c67
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions scripts/release.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,9 +114,7 @@ const childProcess = require('./child-process.js');
changedFiles.add(path.resolve('./package-lock.json'));

// 6. "git add" all changed files
options.dryRun
? await gitUtils.gitAdd(null, { cwd, dryRun: options.dryRun })
: await gitUtils.gitAdd(Array.from(changedFiles), { cwd, dryRun: options.dryRun });
await gitUtils.gitAdd(null, { cwd, dryRun: options.dryRun });

// show git changes to user so he can confirm the changes are ok
const shouldCommitChanges = await promptConfirmation(`${chalk.bgMagenta(dryRunPrefix)} Ready to tag version "${newTag}" and push commits to remote? Choose No to cancel.`);
Expand Down

0 comments on commit 5140c67

Please sign in to comment.