automate-release 2.1.2 → 2.1.6
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/bin/colors.js +15 -0
- package/bin/index.js +1 -1
- package/bin/init.js +2 -2
- package/package.json +5 -6
package/bin/colors.js
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
'use strict'
|
|
2
|
+
|
|
3
|
+
const { styleText } = require('node:util')
|
|
4
|
+
|
|
5
|
+
const gray = str => styleText('gray', str)
|
|
6
|
+
|
|
7
|
+
const white = str => styleText('white', str)
|
|
8
|
+
|
|
9
|
+
const green = str => styleText('green', str)
|
|
10
|
+
|
|
11
|
+
const red = str => styleText('red', str)
|
|
12
|
+
|
|
13
|
+
const yellow = str => styleText('yellow', str)
|
|
14
|
+
|
|
15
|
+
module.exports = { gray, white, green, red, yellow }
|
package/bin/index.js
CHANGED
package/bin/init.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
'use strict'
|
|
4
4
|
|
|
5
|
-
const { white, red, gray } = require('
|
|
5
|
+
const { white, red, gray } = require('./colors')
|
|
6
6
|
const { get, forEach, set } = require('lodash')
|
|
7
7
|
const jsonFuture = require('json-future')
|
|
8
8
|
const link = require('terminal-link')
|
|
@@ -114,7 +114,7 @@ module.exports = async ({ cwd } = {}) => {
|
|
|
114
114
|
console.log(
|
|
115
115
|
gray(
|
|
116
116
|
` or write them in .envrc file and run ${highlight(
|
|
117
|
-
'automate-release
|
|
117
|
+
'automate-release --tokens'
|
|
118
118
|
)}`
|
|
119
119
|
)
|
|
120
120
|
)
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "automate-release",
|
|
3
3
|
"description": "No more manual work in your software releases.",
|
|
4
4
|
"homepage": "https://github.com/kikobeats/automate-release",
|
|
5
|
-
"version": "2.1.
|
|
5
|
+
"version": "2.1.6",
|
|
6
6
|
"main": "index.js",
|
|
7
7
|
"bin": {
|
|
8
8
|
"automate-release": "bin/index.js"
|
|
@@ -45,7 +45,6 @@
|
|
|
45
45
|
"lodash": "~4.17.19",
|
|
46
46
|
"meow": "~9.0.0",
|
|
47
47
|
"nanospinner": "~1.2.2",
|
|
48
|
-
"picocolors": "~1.1.0",
|
|
49
48
|
"terminal-link": "~2.1.1",
|
|
50
49
|
"tinyspawn": "~1.5.5",
|
|
51
50
|
"update-notifier": "~5.1.0"
|
|
@@ -71,11 +70,11 @@
|
|
|
71
70
|
"bin"
|
|
72
71
|
],
|
|
73
72
|
"scripts": {
|
|
74
|
-
"contributors": "(
|
|
73
|
+
"contributors": "(git-authors-cli && finepack && git add package.json && git commit -m 'build: contributors' --no-verify) || true",
|
|
75
74
|
"lint": "standard",
|
|
76
|
-
"postrelease": "
|
|
77
|
-
"pretest": "
|
|
78
|
-
"release": "pnpm
|
|
75
|
+
"postrelease": "pnpm release:tags && pnpm release:github && (ci-publish || pnpm publish --access=public)",
|
|
76
|
+
"pretest": "pnpm lint",
|
|
77
|
+
"release": "pnpm release:version && pnpm release:changelog && pnpm release:commit && pnpm release:tag",
|
|
79
78
|
"release:changelog": "conventional-changelog -p conventionalcommits -i CHANGELOG.md -s",
|
|
80
79
|
"release:commit": "git add package.json CHANGELOG.md && git commit -m \"chore(release): $(node -p \"require('./package.json').version\")\"",
|
|
81
80
|
"release:github": "github-generate-release",
|