Socket
Socket
Sign inDemoInstall

@dword-design/ci

Package Overview
Dependencies
Maintainers
1
Versions
37
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dword-design/ci - npm Package Compare versions

Comparing version 1.1.1 to 1.1.2

7

CHANGELOG.md

@@ -0,1 +1,8 @@

## [1.1.2](https://github.com/dword-design/ci/compare/v1.1.1...v1.1.2) (2021-02-16)
### Bug Fixes
* fix commit title case ([#10](https://github.com/dword-design/ci/issues/10)) ([e1df545](https://github.com/dword-design/ci/commit/e1df54578cbe0c1a202e9636365337a9890017cd))
## [1.1.1](https://github.com/dword-design/ci/compare/v1.1.0...v1.1.1) (2020-12-11)

@@ -2,0 +9,0 @@

25

dist/cli.js

@@ -8,2 +8,4 @@ #!/usr/bin/env node

var _property = _interopRequireDefault(require("@dword-design/functions/dist/property"));
var _split = _interopRequireDefault(require("@dword-design/functions/dist/split"));

@@ -28,3 +30,3 @@

handler: async (remoteUrl = `https://x-access-token:${process.env.GITHUB_TOKEN}@github.com/${process.env.GITHUB_REPOSITORY}`) => {
var _ref2, _output$all;
var _ref2, _ref3, _execa$command, _ref4;

@@ -37,18 +39,17 @@ await _execa.default.command(`git remote set-url origin ${remoteUrl}`, {

});
const output = await _execa.default.command('git diff --name-only --staged', {
const filenames = (_ref2 = (_ref3 = (_execa$command = _execa.default.command('git diff --name-only --staged', {
all: true
});
const commitType = (_ref2 = (_output$all = output.all, (0, _split.default)('\n')(_output$all)), (0, _intersection.default)(_releasedFiles.default)(_ref2)).length > 0 ? 'fix' : 'chore';
}), await _execa$command), (0, _property.default)('all')(_ref3)), _ref2 === '' ? [] : (_ref4 = _ref2, (0, _split.default)('\n')(_ref4)));
try {
await (0, _execa.default)('git', ['commit', '-m', `${commitType}(config): Update changed files`], {
if (filenames.length > 0) {
var _ref5, _filenames;
const commitType = (_ref5 = (_filenames = filenames, (0, _intersection.default)(_releasedFiles.default)(_filenames)), (0, _property.default)('length')(_ref5)) > 0 ? 'fix' : 'chore';
await (0, _execa.default)('git', ['commit', '-m', `${commitType}: update changed files`], {
stdio: 'inherit'
});
} catch {
console.log('Continuing …');
await _execa.default.command('git push', {
stdio: 'inherit'
});
}
await _execa.default.command('git push', {
stdio: 'inherit'
});
},

@@ -55,0 +56,0 @@ name: 'push-changed-files [remoteUrl]'

{
"name": "@dword-design/ci",
"version": "1.1.1",
"version": "1.1.2",
"description": "",

@@ -5,0 +5,0 @@ "repository": "dword-design/ci",

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