Skip to content

Commit b780558

Browse files
author
chj_damon
committed
chore: 修改一些github action的配置项
package.json里面约束只能使用pnpm进行安装
1 parent 5004108 commit b780558

File tree

4 files changed

+11
-5
lines changed

4 files changed

+11
-5
lines changed

.changeset/config.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,8 @@
1515
"___experimentalUnsafeOptions_WILL_CHANGE_IN_PATCH": {
1616
"updateInternalDependents": "always"
1717
},
18-
"ignore": []
18+
"ignore": [
19+
"example",
20+
"thundersdata-frontend"
21+
]
1922
}

.github/workflows/changeset-version.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ on:
55
branches:
66
- master
77

8+
concurrency: ${{ github.workflow }}-${{ github.ref }}
9+
810
jobs:
911
release:
1012
name: upgrade-version
@@ -36,5 +38,8 @@ jobs:
3638

3739
- name: Create Release Pull Request
3840
uses: changesets/action@v1
41+
with:
42+
publish: pnpm build && pnpm changeset publish
3943
env:
4044
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
45+
NPM_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}

.github/workflows/gh-pages.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Deploy CI
1+
name: Build Doc Site
22

33
env:
44
NODE_OPTIONS: --max-old-space-size=6144
@@ -47,9 +47,6 @@ jobs:
4747
- name: Install dependencies
4848
run: pnpm i
4949

50-
- name: Build packages
51-
run: pnpm build
52-
5350
- name: Build Doc
5451
run: pnpm doc:build
5552

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"author": "陈杰 <[email protected]>",
55
"homepage": "https://github.com/thundersdata-frontend/td-design#readme",
66
"scripts": {
7+
"preinstall": "npx only-allow pnpm",
78
"prepare": "husky install",
89
"build": "turbo run build",
910
"commit": "git-cz",

0 commit comments

Comments
 (0)