Skip to content

Commit 9063125

Browse files
committed
ci: upgrade
1 parent f58174d commit 9063125

File tree

5 files changed

+21
-92
lines changed

5 files changed

+21
-92
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
name: Publish Any Commit
2+
on: [push, pull_request]
3+
4+
permissions: {}
5+
6+
jobs:
7+
release:
8+
uses: sxzz/workflows/.github/workflows/release-commit.yml@v1
9+
with:
10+
compact: true

.github/workflows/release.yml

Lines changed: 6 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -7,45 +7,15 @@ on:
77

88
jobs:
99
release:
10-
runs-on: ubuntu-latest
10+
uses: sxzz/workflows/.github/workflows/release.yml@v1
11+
with:
12+
publish: false
1113
permissions:
1214
contents: write
15+
id-token: write
1316

14-
steps:
15-
- uses: actions/checkout@v5
16-
with:
17-
fetch-depth: 0
18-
19-
- name: Set node
20-
uses: actions/setup-node@v5
21-
with:
22-
node-version: lts/*
23-
24-
- run: npx changelogithub
25-
env:
26-
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
27-
28-
publish-jsr:
29-
runs-on: ubuntu-latest
30-
17+
release-jsr:
18+
uses: sxzz/workflows/.github/workflows/release-jsr.yml@v1
3119
permissions:
3220
contents: read
3321
id-token: write
34-
35-
steps:
36-
- uses: actions/checkout@v5
37-
38-
- name: Install pnpm
39-
uses: pnpm/[email protected]
40-
41-
- name: Set node
42-
uses: actions/setup-node@v5
43-
with:
44-
node-version: lts/*
45-
cache: pnpm
46-
47-
- name: Install
48-
run: pnpm i
49-
50-
- name: Publish package
51-
run: npx jsr publish

.github/workflows/unit-test.yml

Lines changed: 4 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -6,56 +6,8 @@ on:
66
pull_request:
77
branches: [main]
88

9-
jobs:
10-
lint:
11-
runs-on: ubuntu-latest
12-
steps:
13-
- uses: actions/checkout@v5
14-
15-
- name: Install pnpm
16-
uses: pnpm/[email protected]
17-
18-
- name: Set node
19-
uses: actions/setup-node@v5
20-
with:
21-
node-version: lts/*
22-
cache: pnpm
23-
24-
- name: Install
25-
run: pnpm i
26-
27-
- name: Lint
28-
run: pnpm run lint
29-
30-
- name: Typecheck
31-
run: pnpm run typecheck
32-
33-
test:
34-
runs-on: ${{ matrix.os }}
9+
permissions: {}
3510

36-
strategy:
37-
matrix:
38-
os: [ubuntu-latest, windows-latest]
39-
node: [18, 20, 22]
40-
fail-fast: false
41-
42-
steps:
43-
- uses: actions/checkout@v5
44-
45-
- name: Install pnpm
46-
uses: pnpm/[email protected]
47-
48-
- name: Set node ${{ matrix.node }}
49-
uses: actions/setup-node@v5
50-
with:
51-
node-version: ${{ matrix.node }}
52-
cache: pnpm
53-
54-
- name: Install
55-
run: pnpm i
56-
57-
- name: Build
58-
run: pnpm run build
59-
60-
- name: Test
61-
run: pnpm run test
11+
jobs:
12+
unit-test:
13+
uses: sxzz/workflows/.github/workflows/unit-test.yml@v1

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,6 @@
7979
"prettier": "^3.6.2",
8080
"rollup": "^4.52.4",
8181
"tsdown": "^0.15.6",
82-
"tsx": "^4.20.6",
8382
"typescript": "^5.9.3",
8483
"unplugin-oxc": "^0.5.2",
8584
"vite": "^7.1.9",

pnpm-lock.yaml

Lines changed: 1 addition & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)