mirror of
https://github.com/vuejs/vue-cli.git
synced 2026-01-15 03:40:48 -06:00
workflow: fix release script
This commit is contained in:
@@ -118,7 +118,7 @@ const release = async () => {
|
||||
'npm',
|
||||
[
|
||||
'publish',
|
||||
'--dist-tag',
|
||||
'--tag',
|
||||
distTag,
|
||||
// must specify registry url: https://github.com/lerna/lerna/issues/896#issuecomment-311894609
|
||||
'--registry',
|
||||
|
||||
@@ -2,7 +2,7 @@ const chalk = require('chalk') // eslint-disable-line
|
||||
const msgPath = process.env.GIT_PARAMS
|
||||
const msg = require('fs').readFileSync(msgPath, 'utf-8').trim()
|
||||
|
||||
const commitRE = /^(v\d+\.\d+\.\d+(-(alpha|beta|rc.\d+))?$)|((revert: )?(feat|fix|docs|style|refactor|perf|test|workflow|ci|chore|types)(\(.+\))?!?: .{1,50})/
|
||||
const commitRE = /^(v\d+\.\d+\.\d+(-(alpha|beta|rc.\d+))?)|((revert: )?(feat|fix|docs|style|refactor|perf|test|workflow|ci|chore|types)(\(.+\))?!?: .{1,50})/
|
||||
|
||||
if (!commitRE.test(msg)) {
|
||||
console.log()
|
||||
|
||||
Reference in New Issue
Block a user