question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Committing files generated by `beforeBump` task

See original GitHub issue

beforeBump runs a build script in my library which generates 3 files. However, the 3 files are not being added to my commit. Is this expected behavior?

This is my config:

release: {
            options: {
                file: 'bower.json',
                additionalFiles: ['package.json'],
                beforeBump: ['build'],
                npm: false,
                npmtag: false
            }
}

Issue Analytics

  • State:open
  • Created 8 years ago
  • Comments:5

github_iconTop GitHub Comments

2reactions
gxxcastillocommented, Nov 30, 2015

hmmm… looks like this was intentional?

    function add(){
      var files = config.files.join(' ');
      grunt.log.ok('files:' + files);
      return run('git add ' + files, ' staged ' + files);
    }

Any reason we wouldn’t want to do a git add . --all?

Should there be an addAll config option?

0reactions
blendsdkcommented, Jul 11, 2018

I have a similar case where my build script needs to change some files. These files need to be committed also.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Committing files generated by `beforeBump` task - Bountysource
beforeBump runs a build script in my library which generates 3 files. However, the 3 files are not being added to my commit....
Read more >
Issues · geddski/grunt-release - GitHub
Committing files generated by beforeBump task. #141 opened on Nov 30, 2015 by gxxcastillo · 5 · grunt-release should quit if any of...
Read more >
How to commit and push to a Git repo during a build | Bamboo
To achieve this use a Script task that performs the changes, followed by a Repository Commit task and a Repository Push task.
Read more >
PyCharm - Commit and push changes to Git repository
As your changes are ready to be committed, select the corresponding files or an entire changelist. If you press Ctrl+K , the entire...
Read more >
Create Git Commits in an Azure DevOps YAML Pipeline
Creating Git commits inside an Azure DevOps YAML pipeline is very easy but you may have to make ... The test file got...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found