@semantic-release/git
Advanced tools
Comparing version 5.0.0 to 6.0.0
@@ -10,3 +10,3 @@ const execa = require('execa'); | ||
async function getModifiedFiles() { | ||
return (await execa.stdout('git', ['ls-files', '-m', '-o', '--exclude-standard'])) | ||
return (await execa.stdout('git', ['ls-files', '-m', '-o'])) | ||
.split('\n') | ||
@@ -18,4 +18,3 @@ .map(tag => tag.trim()) | ||
/** | ||
* Add a list of file to the Git index. | ||
* If on of the files is present in the .gitignore it will be silently skipped. Other files will still be added. | ||
* Add a list of file to the Git index. `.gitignore` will be ignored. | ||
* | ||
@@ -25,3 +24,3 @@ * @param {Array<String>} files Array of files path to add to the index, | ||
async function add(files) { | ||
const shell = await execa('git', ['add', '--ignore-errors'].concat(files), {reject: false}); | ||
const shell = await execa('git', ['add', '--force', '--ignore-errors'].concat(files), {reject: false}); | ||
debug('add file to git index', shell); | ||
@@ -28,0 +27,0 @@ } |
{ | ||
"name": "@semantic-release/git", | ||
"description": "Set of semantic-release plugins to publish to a git repository", | ||
"version": "5.0.0", | ||
"version": "6.0.0", | ||
"author": "Pierre Vanduynslager (https://github.com/pvdlg)", | ||
@@ -38,5 +38,5 @@ "bugs": { | ||
"git-log-parser": "^1.2.0", | ||
"nyc": "^11.1.0", | ||
"nyc": "^12.0.1", | ||
"semantic-release": "^15.0.0", | ||
"sinon": "^5.0.0", | ||
"sinon": "^6.0.0", | ||
"tempy": "^0.2.1", | ||
@@ -43,0 +43,0 @@ "xo": "^0.21.0" |
@@ -67,3 +67,3 @@ # @semantic-release/git | ||
If a file has a match in `.gitignore` it will always be excluded. | ||
**Note**: If a file has a match in `assets` it will be included even if it also has a match in `.gitignore`. | ||
@@ -70,0 +70,0 @@ ##### `assets` examples |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
25467
215