Skip to content

Commit b80d21d

Browse files
author
sanguogege
committed
go ro npm
1 parent 7c2dbc8 commit b80d21d

File tree

4 files changed

+57
-1
lines changed

4 files changed

+57
-1
lines changed

.github/workflows/Release.yml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
# 建议扩大监控范围,否则你只改代码不改 package.json 时不会触发
8+
paths:
9+
- "packages/**"
10+
- ".changeset/*.md"
11+
12+
permissions:
13+
contents: write
14+
pull-requests: write
15+
id-token: write
16+
17+
jobs:
18+
release:
19+
runs-on: ubuntu-latest
20+
steps:
21+
- name: Checkout
22+
uses: actions/checkout@v4
23+
with:
24+
fetch-depth: 0
25+
26+
- name: Setup Bun
27+
28+
uses: oven-sh/setup-bun@v1
29+
30+
- name: Install dependencies
31+
run: bun install --frozen-lockfile
32+
33+
- name: Build packages
34+
run: bun run build
35+
36+
- name: Create Release PR or Publish
37+
id: changesets
38+
uses: changesets/action@v1
39+
with:
40+
# 修正点 1: 必须使用 publish 关键字
41+
publish: bun run release
42+
# 修正点 2: 确认你的脚本名是 version
43+
version: bun run version
44+
createGithubReleases: true
45+
env:
46+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
47+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
48+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

packages/ui/CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# solid-element-ui
2+
3+
## 0.2.2
4+
5+
### Patch Changes
6+
7+
- new version

packages/ui/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "solid-element-ui",
3-
"version": "0.2.1",
3+
"version": "0.2.2",
44
"type": "module",
55
"license": "MIT",
66
"author": "sanguogege",

packages/ui/tsconfig.tsbuildinfo

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"root":["./src/index.tsx","./src/accordion/accordion.tsx","./src/alert/alert.tsx","./src/alert-dialog/alert-dialog.tsx","./src/badge/badge.tsx","./src/breadcrumbs/breadcrumbs.tsx","./src/button/button.tsx","./src/checkbox/checkbox.tsx","./src/collapsible/collapsible.tsx","./src/color-area/color-area.tsx","./src/color-channel-field/color-channel-field.tsx","./src/color-field/color-field.tsx","./src/color-slider/color-slider.tsx","./src/color-swatch/color-swatch.tsx","./src/color-wheel/color-wheel.tsx","./src/combobox/combobox.tsx","./src/context-menu/context-menu.tsx","./src/dialog/dialog.tsx","./src/dropdown-menu/dropdown-menu.tsx","./src/file-field/file-field.tsx","./src/hover-card/hover-card.tsx","./src/image/image.tsx","./src/link/link.tsx","./src/menubar/menubar.tsx","./src/meter/meter.tsx","./src/navigation-menu/navigation-menu.tsx","./src/number-field/number-field.tsx","./src/pagination/pagination.tsx","./src/popover/popover.tsx","./src/progress/progress.tsx","./src/radio-group/radio-group.tsx","./src/rating-group/rating-group.tsx","./src/search/search.tsx","./src/segmented-control/segmented-control.tsx","./src/select/select.tsx","./src/separator/separator.tsx","./src/skeleton/skeleton.tsx","./src/slider/slider.tsx","./src/switch/switch.tsx","./src/tabs/tabs.tsx","./src/text-field/text-field.tsx","./src/time-field/time-field.tsx","./src/toast/toast.tsx","./src/toggle-button/toggle-button.tsx","./src/toggle-group/toggle-group.tsx","./src/tooltip/tooltip.tsx","./globals.d.ts"],"version":"5.9.3"}

0 commit comments

Comments
 (0)