Skip to content

Commit

Permalink
v0.3.0-beta.2
Browse files Browse the repository at this point in the history
  • Loading branch information
lingbopro committed Jul 10, 2024
1 parent 63bc3e6 commit 5ff9e17
Show file tree
Hide file tree
Showing 5 changed files with 258 additions and 53 deletions.
42 changes: 28 additions & 14 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
push:
branches:
- master
- dev

jobs:
build:
Expand All @@ -14,25 +15,38 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup Node ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}

- name: Get Extension Version
shell: bash
run: |
echo "extensionVersion=$(node -p "require('./package.json').version")" >> $GITHUB_ENV
- name: Package VS Code extension
id: package
uses: nhedger/package-vscode-extension@main #放心版本号是和打包是你写的版本号一致 路径都是一样版本号变一下就行

- name: Publish VS Code extension artifact
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: 0.3.0 #注意!!!每次更新必须手动更新版本号
path: /home/runner/work/soberjs-vscode/soberjs-vscode/soberjs-vscode-0.3.0.vsix #注意!!!每次更新必须手动更新版本号
name: soberjs-vscode-${{ env.extensionVersion }}.vsix
path: /home/runner/work/soberjs-vscode/soberjs-vscode/soberjs-vscode-${{ env.extensionVersion }}.vsix
compression-level: 0
if-no-files-found: error

- name: Release #这里有些问题发布不了,不过你可以从artifact下载
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
with:
tag_name: 0.3.0 #注意!!!每次更新必须手动更新版本号
name: 0.3.0 #注意!!!每次更新必须手动更新版本号
body_path: CHANGELOG.md
draft: false
prerelease: false
files: | #注意!!!每次更新必须手动更新版本号
/home/runner/work/soberjs-vscode/soberjs-vscode/soberjs-vscode-0.3.0.vsix
# 既然发布不了就别发布了
# - name: Release #这里有些问题发布不了,不过你可以从artifact下载
# uses: softprops/action-gh-release@v2
# if: startsWith(github.ref, 'refs/tags/')
# with:
# tag_name: ${{ env.extensionVersion }}
# name: ${{ env.extensionVersion }}
# body_path: CHANGELOG.md
# draft: false
# prerelease: false
# files: | #注意!!!每次更新必须手动更新版本号
# /home/runner/work/soberjs-vscode/soberjs-vscode/soberjs-vscode-${{ env.extensionVersion }}.vsix
4 changes: 4 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,12 @@
"Appbar",
"apprat",
"horiz",
"onclick",
"oninput",
"showalign",
"soberjs",
"tbody",
"thead",
"VSIX"
],
"editor.wordWrap": "on",
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

## v0.3.0

- 优化了组件的悬停提示
- 增加了 Page 组件
- 增加了 Drawer 组件
- 增加了 Scroll View 组件
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<img src="https://img.shields.io/github/v/release/lingbopro/soberjs-vscode.svg?style=for-the-badge" alt="Release"/>
</a>
<a href="https://github.com/lingbopro/soberjs-vscode/actions?query=workflow:CI" target="_blank">
<img src="https://img.shields.io/github/actions/workflow/status/lingbopro/soberjs-vscode/CI.yaml?style=for-the-badge" alt="Build status"/>
<img src="https://img.shields.io/github/actions/workflow/status/lingbopro/soberjs-vscode/CI.yml?style=for-the-badge" alt="Build Status"/>
</a>
<a href="https://marketplace.visualstudio.com/items?itemName=lingbopro.soberjs-vscode" target="_blank">
<img src="https://img.shields.io/visual-studio-marketplace/i/lingbopro.soberjs-vscode?style=for-the-badge&logo=visualstudiocode&label=Installs" alt="Visual Studio Marketplace Installs" />
Expand Down Expand Up @@ -44,7 +44,7 @@
- _~~CSS 变量名和枚举值(尚未完成)~~_
- 一点 HTML 代码片段

目前已支持所有 0.2.15 的所有组件(见下表)
目前已支持 Sober.js 0.2.15 的所有组件(见下表)

<details>
<summary>支持的组件(点击展开)</summary>
Expand Down
Loading

0 comments on commit 5ff9e17

Please sign in to comment.