Socket
Socket
Sign inDemoInstall

@semantic-release/git

Package Overview
Dependencies
Maintainers
4
Versions
55
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@semantic-release/git - npm Package Compare versions

Comparing version 5.0.0 to 6.0.0

7

lib/git.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc