Skip to content

Commit 35ed8e9

Browse files
committed
🔧chore: 更新版本号和依赖项
- 将项目版本号从0.0.0更新为1.0.0 - 更新code-inspector-plugin依赖至0.20.12 - 修改GitHub Actions部署配置,添加提交消息过滤条件以控制部署触发
1 parent 7dea27d commit 35ed8e9

2 files changed

Lines changed: 7 additions & 4 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,18 @@
11
name: Deploy
22

33
on:
4+
# 恢复push触发器,但添加过滤条件
45
push:
56
branches: [ master ] # 触发分支,根据你的分支名称调整
6-
7-
# 允许您从 Actions 选项卡手动运行此工作流
7+
8+
# 允许您从 "Actions" 选项卡手动运行此工作流
89
workflow_dispatch:
910

1011
jobs:
1112
deploy:
1213
runs-on: ubuntu-latest
14+
# 只有当提交消息包含[deploy]标记时才执行部署
15+
if: contains(github.event.head_commit.message, '[deploy]')
1316
steps:
1417
- name: 检验代码
1518
uses: actions/checkout@v4

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "shop-admin",
33
"private": true,
4-
"version": "0.0.0",
4+
"version": "1.0.0",
55
"type": "module",
66
"scripts": {
77
"dev": "vite",
@@ -28,7 +28,7 @@
2828
},
2929
"devDependencies": {
3030
"@vitejs/plugin-vue": "^4.1.0",
31-
"code-inspector-plugin": "^0.20.10",
31+
"code-inspector-plugin": "^0.20.12",
3232
"unplugin-auto-import": "^0.15.3",
3333
"unplugin-vue-components": "^0.24.1",
3434
"vite": "4.3.9",

0 commit comments

Comments
 (0)