Skip to content

Commit

Permalink
fix: action
Browse files Browse the repository at this point in the history
  • Loading branch information
h7ml committed Feb 22, 2023
1 parent 38ff0f8 commit 6c8e28f
Show file tree
Hide file tree
Showing 5 changed files with 134 additions and 154 deletions.
64 changes: 32 additions & 32 deletions .cz-config.js
Original file line number Diff line number Diff line change
@@ -1,32 +1,32 @@
module.exports = {
//可选类型
types: [
{ value: "feat", name: "feat: 新功能" },
{ value: "fix", name: "fix: 修复" },
{ value: "docs", name: "docs: 文档变更" },
{ value: "style", name: "style: 代码格式(不影响代码运行的变动)" },
{
value: "refactor",
name: "refactor:重构(既不是增加feature),也不是修复bug",
},
{ value: "perf", name: "perf: 性能优化" },
{ value: "test", name: "test: 增加测试" },
{ value: "chore", name: "chore: 构建过程或辅助功能的变动" },
{ value: "revert", name: "revert: 回退" },
{ value: "build", name: "build: 打包" },
{ value: "revert", name: "revert: 回退" },
],
//消息步骤
messages: {
type: "请选择提交类型",
customScope: "请输入修改范围(可选)",
subject: "请简要描述提交(必填)",
body: "请输入详细描述(可选)",
footer: "请输入要关闭的issue(可选)",
confirmCommit: "确认以上信息提交?(y/n)",
},
//跳过问题
skipQuestion: ["body", "footer"],
//subject文字长度默认是
subjectLimit: 72,
};
module.exports = {
//可选类型
types: [
{ value: "feat", name: "feat: 新功能" },
{ value: "fix", name: "fix: 修复" },
{ value: "docs", name: "docs: 文档变更" },
{ value: "style", name: "style: 代码格式(不影响代码运行的变动)" },
{
value: "refactor",
name: "refactor:重构(既不是增加feature),也不是修复bug",
},
{ value: "perf", name: "perf: 性能优化" },
{ value: "test", name: "test: 增加测试" },
{ value: "chore", name: "chore: 构建过程或辅助功能的变动" },
{ value: "revert", name: "revert: 回退" },
{ value: "build", name: "build: 打包" },
{ value: "revert", name: "revert: 回退" },
],
//消息步骤
messages: {
type: "请选择提交类型",
customScope: "请输入修改范围(可选)",
subject: "请简要描述提交(必填)",
body: "请输入详细描述(可选)",
footer: "请输入要关闭的issue(可选)",
confirmCommit: "确认以上信息提交?(y/n)",
},
//跳过问题
skipQuestion: ["body", "footer"],
//subject文字长度默认是
subjectLimit: 72,
};
24 changes: 12 additions & 12 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# Editor configuration, see http://editorconfig.org
# 该文件有助于为不同的IDE编辑器上处理同一项目的多个开发人员维护一致的编码风格

root = true

[*] # 表示所有文件都适用
charset = utf-8 # 设置文件字符集
indent_style = tab # 缩进风格 tab | space
indent_size = 2 # 缩进大小
end_of_line = lf # 控制换行类型 lf | cr | crlf
trim_trailing_whitespace = true # 去除行首的任意空白字符
insert_final_newline = true # 是否始终在文件末尾插入一个新行
# Editor configuration, see http://editorconfig.org
# 该文件有助于为不同的IDE编辑器上处理同一项目的多个开发人员维护一致的编码风格

root = true

[*] # 表示所有文件都适用
charset = utf-8 # 设置文件字符集
indent_style = tab # 缩进风格 tab | space
indent_size = 2 # 缩进大小
end_of_line = lf # 控制换行类型 lf | cr | crlf
trim_trailing_whitespace = true # 去除行首的任意空白字符
insert_final_newline = true # 是否始终在文件末尾插入一个新行
17 changes: 1 addition & 16 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,16 +1 @@
*.html text eol=lf
*.css text eol=lf
*.js text eol=lf
*.scss text eol=lf
*.vue text eol=lf
*.hbs text eol=lf
*.sh text eol=lf
*.md text eol=lf
*.json text eol=lf
*.yml text eol=lf
.browserslistrc text eol=lf
.editorconfig text eol=lf
.eslintignore text eol=lf
.gitattributes text eol=lf
LICENSE text eol=lf
*.conf text eol=lf
* text eol=lf
28 changes: 14 additions & 14 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates

version: 2
updates:
- package-ecosystem: 'npm' # See documentation for possible values
directory: '/' # Location of package manifests
open-pull-requests-limit: 20
schedule:
interval: 'daily'
time: '19:00'
timezone: 'Asia/Shanghai'
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates

version: 2
updates:
- package-ecosystem: 'npm' # See documentation for possible values
directory: '/' # Location of package manifests
open-pull-requests-limit: 20
schedule:
interval: 'daily'
time: '19:00'
timezone: 'Asia/Shanghai'
155 changes: 75 additions & 80 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,80 +1,75 @@
name: ci
on:
push:
workflow_dispatch:
env:
TZ: Asia/Shanghai

jobs:
ci:
runs-on: ubuntu-latest
steps:
- name: Checkout 🚀
uses: actions/checkout@v3
with:
ref: master
fetch-depth: 0

- name: Install pnpm 🚀
uses: pnpm/action-setup@v2
with:
version: 7
run_install: true

- name: Setup Node.js 🚀
uses: actions/setup-node@v3
with:
node-version: 14
cache: pnpm

- name: Install Deps 🚀
run: pnpm install --frozen-lockfile

- name: Build project 🚀
env:
NODE_OPTIONS: --max_old_space_size=4096
run: pnpm run build

- name: copy README.md
run: cp README.md dist
needs: clear

codecov:
runs-on: ubuntu-latest
steps:
- name: Code coverage
uses: codecov/[email protected]
with:
token: ${{ secrets.CODECOV_TOKEN }}
needs: ci

clear:
name: clear
runs-on: ubuntu-latest
steps:
- name: Checkout 🚀
uses: actions/checkout@v2
with:
repository: 'h7ml/Workflows-Cleaner'
fetch-depth: 0
- name: Set up Python 🚀
uses: actions/setup-python@v2
with:
python-version: '3.9'
- name: python cache 🚀
uses: actions/cache@v2
with:
path: '~/.cache/pip'
key: "${{ runner.os }}-pip-cache-${{ hashFiles('setup.cfg') }}"
restore-keys: |
"${{ runner.os }}-pip-cache-"
"${{ runner.os }}-pip-"
- name: Install pipenv 🚀
env:
GITHUB_REPO: ${{ github.repository }}
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }}
EXPIRE_TIME: '1h'
run: |
python -m pip install --upgrade pipenv wheel
pipenv install
pipenv run python run.py
name: ci
on:
push:
workflow_dispatch:
env:
TZ: Asia/Shanghai

jobs:
ci:
runs-on: ubuntu-latest
steps:
- name: Checkout 🚀
uses: actions/checkout@v3
with:
ref: master
fetch-depth: 0

- name: Install pnpm 🚀
uses: pnpm/action-setup@v2
with:
version: 7
run_install: true

- name: Setup Node.js 🚀
uses: actions/setup-node@v3
with:
node-version: 14
cache: pnpm

- name: Install Deps 🚀
run: pnpm install --frozen-lockfile

- name: Build project 🚀
env:
NODE_OPTIONS: --max_old_space_size=4096
run: pnpm run build

- name: copy README.md
run: cp README.md dist
needs: clear

codecov:
runs-on: ubuntu-latest
steps:
- name: Code coverage
uses: codecov/[email protected]
with:
token: ${{ secrets.CODECOV_TOKEN }}
needs: ci

clear:
name: clear
runs-on: ubuntu-latest
timeout-minutes: 60
steps:
- name: Checkout
uses: actions/checkout@v2
with:
repository: 'Apocalypsor/Workflows-Cleaner'
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.9'
- name: Install pipenv
run: python -m pip install --upgrade pipenv wheel
- name: Install dependencies
run: |
pipenv requirements > requirements.txt
pip install -r requirements.txt
- name: Clean
env:
GITHUB_REPO: ${{ github.repository }}
GITHUB_TOKEN: ${{ secrets.ACTION_SECRET }}
EXPIRE_TIME: '12h'
run: python run.py

1 comment on commit 6c8e28f

@vercel
Copy link

@vercel vercel bot commented on 6c8e28f Feb 22, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

vue-amis-admin – ./

vue-amis-admin.vercel.app
vue-amis-admin-git-master-h7ml.vercel.app
vue-amis-admin-h7ml.vercel.app

Please sign in to comment.