mirror of
https://gitee.com/vuejs/vue.git
synced 2024-11-29 18:47:39 +08:00
workflow: fix release check + remove dist file from git index
This commit is contained in:
parent
1b49c75e2a
commit
1b7584664d
23
.github/workflows/release-tag.yml
vendored
Normal file
23
.github/workflows/release-tag.yml
vendored
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
on:
|
||||||
|
push:
|
||||||
|
tags:
|
||||||
|
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10
|
||||||
|
|
||||||
|
name: Create Release
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
name: Create Release
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout code
|
||||||
|
uses: actions/checkout@master
|
||||||
|
- name: Create Release for Tag
|
||||||
|
id: release_tag
|
||||||
|
uses: yyx990803/release-tag@master
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
with:
|
||||||
|
tag_name: ${{ github.ref }}
|
||||||
|
body: |
|
||||||
|
Please refer to [CHANGELOG.md](https://github.com/vuejs/vue/blob/main/CHANGELOG.md) for details.
|
4
.gitignore
vendored
4
.gitignore
vendored
@ -9,8 +9,8 @@ packages/server-renderer/build.dev.js
|
|||||||
packages/server-renderer/build.prod.js
|
packages/server-renderer/build.prod.js
|
||||||
packages/server-renderer/server-plugin.js
|
packages/server-renderer/server-plugin.js
|
||||||
packages/server-renderer/client-plugin.js
|
packages/server-renderer/client-plugin.js
|
||||||
packages/compiler-sfc/build.js
|
packages/template-compiler/build.js
|
||||||
packages/compiler-sfc/browser.js
|
packages/template-compiler/browser.js
|
||||||
.vscode
|
.vscode
|
||||||
dist
|
dist
|
||||||
temp
|
temp
|
||||||
|
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
@ -3,7 +3,7 @@ const msgPath = process.env.GIT_PARAMS
|
|||||||
const msg = require('fs').readFileSync(msgPath, 'utf-8').trim()
|
const msg = require('fs').readFileSync(msgPath, 'utf-8').trim()
|
||||||
|
|
||||||
const commitRE =
|
const commitRE =
|
||||||
/^(revert: )?(wip|feat|fix|polish|docs|style|refactor|perf|test|workflow|ci|chore|types|build)(\(.+\))?: .{1,50}/
|
/^(revert: )?(wip|release|feat|fix|polish|docs|style|refactor|perf|test|workflow|ci|chore|types|build)(\(.+\))?: .{1,50}/
|
||||||
|
|
||||||
if (!commitRE.test(msg)) {
|
if (!commitRE.test(msg)) {
|
||||||
console.log()
|
console.log()
|
||||||
@ -18,12 +18,7 @@ if (!commitRE.test(msg)) {
|
|||||||
` ${chalk.green(
|
` ${chalk.green(
|
||||||
`fix(v-model): handle events on blur (close #28)`
|
`fix(v-model): handle events on blur (close #28)`
|
||||||
)}\n\n` +
|
)}\n\n` +
|
||||||
chalk.red(` See .github/COMMIT_CONVENTION.md for more details.\n`) +
|
chalk.red(` See .github/COMMIT_CONVENTION.md for more details.\n`)
|
||||||
chalk.red(
|
|
||||||
` You can also use ${chalk.cyan(
|
|
||||||
`npm run commit`
|
|
||||||
)} to interactively generate a commit message.\n`
|
|
||||||
)
|
|
||||||
)
|
)
|
||||||
process.exit(1)
|
process.exit(1)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user