Skip to content

Commit a59fc17

Browse files
committed
release: update
2 parents 65b14d0 + 310f435 commit a59fc17

8 files changed

Lines changed: 2013 additions & 1277 deletions

File tree

.github/workflows/release-package.yml

Lines changed: 46 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -14,55 +14,66 @@ jobs:
1414
with:
1515
fetch-depth: 0
1616

17-
# - name: Setup node
18-
# uses: actions/setup-node@v2
19-
# with:
20-
# node-version: '16'
21-
# registry-url: https://registry.npmjs.org/
17+
- name: Setup node
18+
uses: actions/setup-node@v2
19+
with:
20+
node-version: '16'
21+
registry-url: https://registry.npmjs.org/
2222

23-
# - name: Install pnpm
24-
# uses: pnpm/action-setup@v2
25-
# with:
26-
# version: 7
27-
# run_install: false
23+
- name: Install pnpm
24+
uses: pnpm/action-setup@v2
25+
with:
26+
version: 7
27+
run_install: false
2828

29-
# # Use cache to reduce installation time
30-
# - name: Get pnpm store directory
31-
# id: pnpm-cache
32-
# shell: bash
33-
# run: |
34-
# echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
29+
# Use cache to reduce installation time
30+
- name: Get pnpm store directory
31+
id: pnpm-cache
32+
shell: bash
33+
run: |
34+
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
3535
36-
# - uses: actions/cache@v3
37-
# name: Setup pnpm cache
38-
# with:
39-
# path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
40-
# key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
41-
# restore-keys: |
42-
# ${{ runner.os }}-pnpm-store-
36+
- uses: actions/cache@v3
37+
name: Setup pnpm cache
38+
with:
39+
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
40+
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
41+
restore-keys: |
42+
${{ runner.os }}-pnpm-store-
4343
44-
# - name: Install dependencies
45-
# run: pnpm install --frozen-lockfile
44+
- name: Install dependencies
45+
run: pnpm install --frozen-lockfile
4646

47-
# - name: Build
48-
# run: pnpm run build
47+
- name: Build
48+
run: pnpm run build
4949

50-
# - name: publish
51-
# working-directory: 'packages/core'
52-
# env:
53-
# NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
54-
# run: npm publish
50+
- name: publish
51+
working-directory: 'packages/core'
52+
env:
53+
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
54+
run: npm publish
5555

56-
# 下面主要是创建 github 的release
57-
# 需要手动修改 package.json 版本
5856
# 使用 tyankatsu0105/read-package-version-actions@v1 工具来读取对应的package.json 数据
5957
- name: Read package.json
6058
uses: tyankatsu0105/read-package-version-actions@v1
6159
with:
6260
path: './packages/core'
6361
id: package-version
6462

65-
# 关于创建 release 的更多参数,可以查看 actions/create-release@v1
63+
# 生成 Changelog
64+
- name: Changelog
65+
run: pnpm run changlog
66+
67+
# 提交 Changelog
68+
- name: Commit Changelog
69+
run: git add . && git commit -m"docs:update CHANGELOG.md && git push"
70+
71+
# 打 tag
72+
- name: Tag
73+
run: git tag v${{ steps.package-version.outputs.version }} && git push origin v${{ steps.package-version.outputs.version }}
74+
75+
# 下面主要是创建 github 的release
76+
# 关于创建 release 的更多参数,可以查看 actions/create-release@v1
6677
- name: Create Release for Tag
6778
id: release_tag
6879
uses: actions/create-release@v1

README.md

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,7 @@
66
</p>
77
<h2 align="center"> Quarkc </h2>
88
<div align="center">
9-
10-
Quarkc,跨技术栈/原生组件构建工具。
11-
9+
Quarkc,跨技术栈/原生组件构建工具。组件可运行于任何前端框架!
1210
</div>
1311

1412
<p align="center">
@@ -27,6 +25,16 @@ Quarkc,跨技术栈/原生组件构建工具。
2725
</a>
2826
</p>
2927

28+
29+
### 联系我们
30+
31+
微信扫码,可进技术交流群
32+
33+
<p>
34+
<img width="200" src="https://github.com/hellof2e/quark-core/assets/14307551/cf207f43-8220-4355-87e5-9a45d5d09a50" />
35+
</p>
36+
37+
3038
### 优秀案例
3139

3240
| 作者 | github 地址 | 截图 / 链接
@@ -41,7 +49,7 @@ Quarkc,跨技术栈/原生组件构建工具。
4149

4250
## 介绍
4351

44-
Quarkc(Quark core缩写) 是一个拥有完美开发体验的 web components 框架。通过它,您可以开发标准的 **跨框架组件**
52+
Quarkc(Quark core缩写) 是一个拥有完美开发体验的 web components 工具。通过它,您可以开发标准的 **跨框架组件**
4553

4654
## Why Quarkc ?
4755

package.json

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,8 @@
88
"dev": "pnpm run -C example dev",
99
"codeformat": "prettier --write *",
1010
"prepare": "husky install",
11-
"tag": "git push origin --tags && git push",
12-
"pub": "pnpm run -C packages/core pub",
13-
"release:major": "pnpm run -C packages/core release:major && pnpm run pub && pnpm run tag",
14-
"release:minor": "pnpm run -C packages/core release:minor && pnpm run pub && pnpm run tag",
15-
"release:patch": "pnpm run -C packages/core release:patch && pnpm run pub && pnpm run tag"
11+
"build": "pnpm run -C packages/core build",
12+
"changlog": "pnpm run -C packages/core changelog"
1613
},
1714
"devDependencies": {
1815
"@commitlint/cli": "^17.0.3",

packages/core/.versionrc.cjs

Lines changed: 0 additions & 81 deletions
This file was deleted.

0 commit comments

Comments
 (0)