@cmflow/cli 1.0.9 → 1.0.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cmflow/cli",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.11",
|
|
4
4
|
"description": "An awesome Git Flow",
|
|
5
5
|
"author": "camfou",
|
|
6
6
|
"license": "MIT",
|
|
@@ -38,10 +38,10 @@
|
|
|
38
38
|
"fs-extra": "^10.1.0",
|
|
39
39
|
"globby": "11.1.0",
|
|
40
40
|
"has-yarn": "^2.1.0",
|
|
41
|
-
"inquirer": "
|
|
41
|
+
"inquirer": "9.2.19",
|
|
42
42
|
"listr": "0.14.3",
|
|
43
43
|
"lodash": "4.17.21",
|
|
44
|
-
"rxjs": "
|
|
44
|
+
"rxjs": "7.8.1",
|
|
45
45
|
"semantic-release": "22.0.7",
|
|
46
46
|
"semver": "7.3.7",
|
|
47
47
|
"split": "1.0.1"
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { npm, yarn } from '../../common/index.js'
|
|
2
2
|
import { refreshMetadata, shouldReinstall } from '../utils/check-install.js'
|
|
3
3
|
import Listr from 'listr'
|
|
4
|
-
import { catchError } from 'rxjs
|
|
4
|
+
import { catchError } from 'rxjs'
|
|
5
5
|
|
|
6
6
|
export const updateDependencies = ({ useYarn }) => {
|
|
7
7
|
const manager = useYarn ? yarn : npm
|
package/src/common/cli/cli.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import 'any-observable/register/rxjs-all.js' // eslint-disable-line import/no-unassigned-import
|
|
2
2
|
import execa from 'execa'
|
|
3
3
|
import streamToObservable from '@samverschueren/stream-to-observable'
|
|
4
|
-
import { filter, merge } from 'rxjs
|
|
4
|
+
import { filter, merge } from 'rxjs'
|
|
5
5
|
import split from 'split'
|
|
6
6
|
import { spawnSync } from 'child_process'
|
|
7
7
|
export class Cli {
|
package/src/common/get-config.js
CHANGED
|
@@ -57,6 +57,26 @@ export function getCI () {
|
|
|
57
57
|
BRANCH_NAME: CIRCLE_BRANCH
|
|
58
58
|
}
|
|
59
59
|
}
|
|
60
|
+
|
|
61
|
+
if (env.GITHUB_ACTION) {
|
|
62
|
+
const {
|
|
63
|
+
GITHUB_ACTION,
|
|
64
|
+
GITHUB_SHA,
|
|
65
|
+
GITHUB_REF,
|
|
66
|
+
GITHUB_ACTOR
|
|
67
|
+
} = env
|
|
68
|
+
return {
|
|
69
|
+
CI_NAME: 'Github CI',
|
|
70
|
+
USER: GIT_USER_NAME || GITHUB_ACTOR || 'Github CI',
|
|
71
|
+
EMAIL: GIT_USER_EMAIL || 'action@github.com',
|
|
72
|
+
BUILD_NUMBER: GITHUB_ACTION,
|
|
73
|
+
CI_ORIGIN: 'origin-git',
|
|
74
|
+
REF_COMMIT: GITHUB_SHA,
|
|
75
|
+
IS_PULL_REQUEST: false,
|
|
76
|
+
BRANCH_NAME: GITHUB_REF.replace('refs/heads/', '')
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
|
|
60
80
|
return {
|
|
61
81
|
NAME: 'Unsupported CI',
|
|
62
82
|
BUILD_NUMBER: '',
|