修复远程终端识别本地操作系统问题并完善工作流配置 #7

Merged
shizi merged 12 commits from fix-bug into main 2026-01-14 08:05:13 +00:00
4 changed files with 119 additions and 31 deletions
Showing only changes of commit 7dc0f11e6c - Show all commits

View File

@@ -33,8 +33,8 @@ jobs:
git config --global --add safe.directory /github/workspace git config --global --add safe.directory /github/workspace
# 配置用户信息 # 配置用户信息
git config --global user.name "github-actions[bot]" git config --global user.name "devstar"
git config --global user.email "github-actions[bot]@users.noreply.github.com" git config --global user.email "devstar@noreply.github.com"
- name: 自动递增版本号 - name: 自动递增版本号
if: github.event_name == 'push' && github.ref == 'refs/heads/main' if: github.event_name == 'push' && github.ref == 'refs/heads/main'
@@ -43,8 +43,10 @@ jobs:
CURRENT_VERSION=$(jq -r '.version' package.json) CURRENT_VERSION=$(jq -r '.version' package.json)
echo "当前版本: $CURRENT_VERSION" echo "当前版本: $CURRENT_VERSION"
# 分解版本号 # 分解版本号(使用 sh 兼容的语法)
IFS='.' read -r MAJOR MINOR PATCH <<< "$CURRENT_VERSION" MAJOR=$(echo "$CURRENT_VERSION" | cut -d'.' -f1)
MINOR=$(echo "$CURRENT_VERSION" | cut -d'.' -f2)
PATCH=$(echo "$CURRENT_VERSION" | cut -d'.' -f3)
# 递增补丁版本号 # 递增补丁版本号
NEW_PATCH=$((PATCH + 1)) NEW_PATCH=$((PATCH + 1))
@@ -75,4 +77,4 @@ jobs:
run: | run: |
npm run publish npm run publish
env: env:
VSCE_PAT: ${{ secrets.VSCE_PAT }} VSCE_PAT: ${{ secrets.VSCE_PAT }}

View File

@@ -2,7 +2,7 @@
"name": "devstar", "name": "devstar",
"displayName": "%displayName%", "displayName": "%displayName%",
"description": "%description%", "description": "%description%",
"version": "0.4.4", "version": "0.5.1",
"keywords": [], "keywords": [],
"publisher": "mengning", "publisher": "mengning",
"engines": { "engines": {