Skip to content

Commit 74c712f

Browse files
committed
ci: update
1 parent f83d7af commit 74c712f

File tree

6 files changed

+49
-80
lines changed

6 files changed

+49
-80
lines changed

.github/workflows/release.yml

Lines changed: 5 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -3,41 +3,14 @@ name: Release
33
on:
44
push:
55
tags:
6-
- 'v**'
6+
- 'v*'
77

88
jobs:
99
release:
10-
runs-on: ubuntu-latest
11-
10+
uses: sxzz/workflows/.github/workflows/release.yml@v1
11+
with:
12+
publish: true
13+
build: pnpm run build
1214
permissions:
1315
contents: write
1416
id-token: write
15-
16-
steps:
17-
- uses: actions/checkout@v4
18-
with:
19-
fetch-depth: 0
20-
21-
- name: Setup pnpm
22-
uses: pnpm/action-setup@v4.1.0
23-
24-
- name: Setup node
25-
uses: actions/setup-node@v4
26-
with:
27-
node-version: lts/*
28-
registry-url: https://registry.npmjs.org/
29-
cache: pnpm
30-
31-
- run: npx changelogithub
32-
continue-on-error: true
33-
env:
34-
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
35-
36-
- name: Install deps
37-
run: pnpm i
38-
39-
- name: Build
40-
run: pnpm run build
41-
42-
- name: Publish
43-
run: npm i -g npm && pnpm publish -r --access public --no-git-checks

.github/workflows/unit-test.yml

Lines changed: 7 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -6,49 +6,11 @@ on:
66
pull_request:
77
branches: [main]
88

9-
jobs:
10-
lint:
11-
runs-on: ubuntu-latest
12-
13-
steps:
14-
- uses: actions/checkout@v4
15-
16-
- uses: pnpm/action-setup@v4.1.0
17-
name: Install pnpm
18-
19-
- uses: actions/setup-node@v4
20-
with:
21-
node-version: lts/*
22-
cache: pnpm
23-
24-
- name: Install deps
25-
run: pnpm i
26-
27-
- name: Lint
28-
run: pnpm lint
29-
30-
test:
31-
strategy:
32-
matrix:
33-
os: [ubuntu-latest, windows-latest]
34-
node-version: [20, 22, 24]
35-
fail-fast: false
9+
permissions: {}
3610

37-
runs-on: ${{ matrix.os }}
38-
39-
steps:
40-
- uses: actions/checkout@v4
41-
42-
- uses: pnpm/action-setup@v4.1.0
43-
name: Install pnpm
44-
45-
- uses: actions/setup-node@v4
46-
with:
47-
node-version: ${{ matrix.node-version }}
48-
cache: pnpm
49-
50-
- name: Install deps
51-
run: pnpm i
52-
53-
- name: Build
54-
run: pnpm build
11+
jobs:
12+
unit-test:
13+
uses: sxzz/workflows/.github/workflows/unit-test.yml@v1
14+
with:
15+
skip-test: true
16+
build-for-lint: true

.vscode/settings.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,5 @@
22
"editor.formatOnSave": true,
33
"[xml]": {
44
"editor.formatOnSave": false
5-
},
6-
"eslint.experimental.useFlatConfig": true
5+
}
76
}

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
"build": "pnpm run -C ./packages/vue build",
1111
"lint": "eslint .",
1212
"lint:fix": "pnpm run lint --fix",
13+
"typecheck": "vue-tsc --noEmit",
1314
"format": "prettier --write . && pnpm run -C ./packages/svg optimize",
1415
"release": "bumpp -r"
1516
},
@@ -19,7 +20,8 @@
1920
"bumpp": "^10.4.0",
2021
"eslint": "^9.39.2",
2122
"prettier": "^3.8.1",
22-
"typescript": "^5.9.3"
23+
"typescript": "^5.9.3",
24+
"vue-tsc": "^3.2.2"
2325
},
2426
"prettier": "@sxzz/prettier-config"
2527
}

pnpm-lock.yaml

Lines changed: 30 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pnpm-workspace.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,6 @@ packages:
44

55
allowBuilds:
66
esbuild: false
7+
8+
trustPolicy: no-downgrade
9+
ignoreWorkspaceRootCheck: true

0 commit comments

Comments
 (0)