@thisismanta/semantic-version 2.0.0-7 → 2.0.0-8
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/lib/auto-npm-version.js +3 -2
- package/lib/index.js +1 -1
- package/package.json +1 -1
package/lib/auto-npm-version.js
CHANGED
|
@@ -48,7 +48,7 @@ async function main() {
|
|
|
48
48
|
}))
|
|
49
49
|
.filter(({ message }) => semver_1.default.valid(message) === null)
|
|
50
50
|
.map(({ hash, message }) => {
|
|
51
|
-
const { type, breaking, subject } = (0, index_1.checkConventionalMessage)(message, { debug:
|
|
51
|
+
const { type, breaking, subject } = (0, index_1.checkConventionalMessage)(message, { debug: () => { } });
|
|
52
52
|
return {
|
|
53
53
|
hash,
|
|
54
54
|
type,
|
|
@@ -78,7 +78,7 @@ async function main() {
|
|
|
78
78
|
const nextVersion = await run(`npm version --json --no-commit-hooks ${releaseType}`);
|
|
79
79
|
(0, debug_1.debug)('nextVersion »', nextVersion);
|
|
80
80
|
console.log(`Created version ${releaseType}`);
|
|
81
|
-
await run(`git push --follow-tags origin
|
|
81
|
+
await run(`git push --follow-tags origin`);
|
|
82
82
|
console.log(`Pushed Git tags`);
|
|
83
83
|
if (semver_1.default.valid(nextVersion) && process.env.GITHUB_TOKEN) {
|
|
84
84
|
const commitGroups = {
|
|
@@ -108,6 +108,7 @@ async function main() {
|
|
|
108
108
|
.join('\n\n');
|
|
109
109
|
(0, debug_1.debug)('releaseNote »', releaseNote);
|
|
110
110
|
const octokit = github.getOctokit(process.env.GITHUB_TOKEN);
|
|
111
|
+
github.context.payload.ref;
|
|
111
112
|
// See https://octokit.github.io/rest.js/v19#repos-create-release
|
|
112
113
|
const releaseRespond = await octokit.rest.repos.createRelease({
|
|
113
114
|
...github.context.repo,
|
package/lib/index.js
CHANGED
|
@@ -9,7 +9,7 @@ function checkConventionalMessage(message, { debug }) {
|
|
|
9
9
|
debug('type »', type);
|
|
10
10
|
debug('scope »', scope);
|
|
11
11
|
debug('breaking »', breaking);
|
|
12
|
-
debug('subject »', subject);
|
|
12
|
+
debug('subject »', subject?.trim());
|
|
13
13
|
const errors = [
|
|
14
14
|
!type &&
|
|
15
15
|
'The pull request title must match the pattern of "<type>[!]: <subject>" which is a reduced set of https://www.conventionalcommits.org/en/v1.0.0/',
|