Skip to content

Commit 25c9ec3

Browse files
committed
chore: update
2 parents 5c8e3a8 + e1b8433 commit 25c9ec3

429 files changed

Lines changed: 11970 additions & 16138 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflow.lock.yml

Lines changed: 105 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,105 @@
1+
lockfileVersion: 1
2+
entries:
3+
.github/workflows/src/ci.yml:
4+
output: .github/workflows/ci.yml
5+
dependencies:
6+
- package: github:actions/checkout
7+
requested: v5
8+
foundAt: .github/workflows/src/ci.yml#jobs.lint.steps[0].uses
9+
- package: github:pnpm/action-setup
10+
requested: v6
11+
foundAt: .github/workflows/src/ci.yml#jobs.lint.steps[1].uses
12+
- package: github:actions/setup-node
13+
requested: v5
14+
foundAt: .github/workflows/src/ci.yml#jobs.lint.steps[2].uses
15+
.github/workflows/src/release-commit.yml:
16+
output: .github/workflows/release-commit.yml
17+
dependencies:
18+
- package: github:sxzz/workflows/.github/workflows/release-commit.yml
19+
requested: v1
20+
foundAt: .github/workflows/src/release-commit.yml#jobs.release.uses
21+
.github/workflows/src/release.yml:
22+
output: .github/workflows/release.yml
23+
dependencies:
24+
- package: github:sxzz/workflows/.github/workflows/release.yml
25+
requested: v1
26+
foundAt: .github/workflows/src/release.yml#jobs.release.uses
27+
packages:
28+
github:actions/checkout:
29+
source: github
30+
owner: actions
31+
repo: checkout
32+
path: .
33+
type: external-action
34+
external: true
35+
contentDigest: sha256:11b63452f6e43ffb5ab8bfdaaafb8a915b354318e3ad9bce4eb0686b9e380f90
36+
dependencies: []
37+
requested: v5
38+
resolved: de0fac2e4500dabe0009e67214ff5f5447ce83dd
39+
github:actions/setup-node:
40+
source: github
41+
owner: actions
42+
repo: setup-node
43+
path: .
44+
type: external-action
45+
external: true
46+
contentDigest: sha256:ad45f1922115116fb4706651d0a9262332bc4e4f11eb2021e09789dd1af18085
47+
dependencies: []
48+
requested: v5
49+
resolved: 48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e
50+
github:pnpm/action-setup:
51+
source: github
52+
owner: pnpm
53+
repo: action-setup
54+
path: .
55+
type: external-action
56+
external: true
57+
contentDigest: sha256:7903b0a83562cd93df4d70181e610d9a4d6aedf76c83197208a6fdc13614d6f1
58+
dependencies: []
59+
requested: v6
60+
resolved: 0e279bb959325dab635dd2c09392533439d90093
61+
github:sxzz/workflows/.github/workflows/release-commit.yml:
62+
source: github
63+
owner: sxzz
64+
repo: workflows
65+
path: .github/workflows/release-commit.yml
66+
type: reusable-workflow
67+
contentDigest: sha256:06630f463980c0f109857593e1205d302aaca93766e6337790c7f319976b9da5
68+
dependencies:
69+
- package: github:sxzz/workflows/setup-js
70+
requested: main
71+
foundAt: sxzz/workflows/.github/workflows/release-commit.yml#jobs.release.steps[0].uses
72+
requested: v1
73+
resolved: 866f46ed892502b45a58ba4de02987123ccf8e17
74+
github:sxzz/workflows/.github/workflows/release.yml:
75+
source: github
76+
owner: sxzz
77+
repo: workflows
78+
path: .github/workflows/release.yml
79+
type: reusable-workflow
80+
contentDigest: sha256:d9f3f6aed20404bc6299078667fbc05960ef0d825debea678c98ade002521de5
81+
dependencies:
82+
- package: github:sxzz/workflows/setup-js
83+
requested: main
84+
foundAt: sxzz/workflows/.github/workflows/release.yml#jobs.release.steps[0].uses
85+
requested: v1
86+
resolved: 866f46ed892502b45a58ba4de02987123ccf8e17
87+
github:sxzz/workflows/setup-js:
88+
source: github
89+
owner: sxzz
90+
repo: workflows
91+
path: setup-js
92+
type: composite
93+
contentDigest: sha256:8e6ea7bb3e82fbe21f52da6e2fecdb3185427c9e2ca68efa5ab0feaddd44262e
94+
dependencies:
95+
- package: github:actions/checkout
96+
requested: de0fac2e4500dabe0009e67214ff5f5447ce83dd
97+
foundAt: sxzz/workflows/setup-js#runs.steps[0].uses
98+
- package: github:pnpm/action-setup
99+
requested: 0e279bb959325dab635dd2c09392533439d90093
100+
foundAt: sxzz/workflows/setup-js#runs.steps[1].uses
101+
- package: github:actions/setup-node
102+
requested: 48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e
103+
foundAt: sxzz/workflows/setup-js#runs.steps[2].uses
104+
requested: main
105+
resolved: 866f46ed892502b45a58ba4de02987123ccf8e17

.github/workflows/ci.yml

Lines changed: 44 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,22 +4,24 @@ on:
44
push:
55
branches:
66
- main
7-
87
pull_request:
98
branches:
109
- main
1110

11+
permissions:
12+
contents: read
13+
1214
jobs:
1315
lint:
1416
runs-on: ubuntu-latest
1517
steps:
16-
- uses: actions/checkout@v5
18+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
1719

1820
- name: Install pnpm
19-
uses: pnpm/action-setup@v4
21+
uses: pnpm/action-setup@0e279bb959325dab635dd2c09392533439d90093
2022

2123
- name: Set node
22-
uses: actions/setup-node@v5
24+
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e
2325
with:
2426
node-version: lts/*
2527

@@ -40,21 +42,23 @@ jobs:
4042

4143
test:
4244
runs-on: ${{ matrix.os }}
43-
4445
strategy:
4546
matrix:
46-
node: [lts/*]
47-
os: [ubuntu-latest, windows-latest, macos-latest]
47+
node:
48+
- lts/*
49+
os:
50+
- ubuntu-latest
51+
- windows-latest
52+
- macos-latest
4853
fail-fast: false
49-
5054
steps:
51-
- uses: actions/checkout@v5
55+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
5256

5357
- name: Install pnpm
54-
uses: pnpm/action-setup@v4
58+
uses: pnpm/action-setup@0e279bb959325dab635dd2c09392533439d90093
5559

56-
- name: Set node ${{ matrix.node }}
57-
uses: actions/setup-node@v5
60+
- name: ${{ format('Set node {0}', matrix.node) }}
61+
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e
5862
with:
5963
node-version: ${{ matrix.node }}
6064

@@ -69,3 +73,31 @@ jobs:
6973

7074
- name: Test
7175
run: nr test
76+
77+
e2e:
78+
runs-on: ubuntu-latest
79+
steps:
80+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
81+
82+
- name: Install pnpm
83+
uses: pnpm/action-setup@0e279bb959325dab635dd2c09392533439d90093
84+
85+
- name: Set node
86+
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e
87+
with:
88+
node-version: lts/*
89+
90+
- name: Setup
91+
run: npm i -g @antfu/ni
92+
93+
- name: Install
94+
run: nci
95+
96+
- name: Build
97+
run: nr build
98+
99+
- name: Install Chromium
100+
run: pnpm -C e2e exec playwright-core install --with-deps chromium
101+
102+
- name: E2E
103+
run: nr test:e2e
Lines changed: 34 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,39 @@
11
name: Publish Any Commit
2-
on: [push, pull_request]
2+
3+
on:
4+
- push
5+
- pull_request
36

47
permissions: {}
58

69
jobs:
7-
release:
8-
uses: sxzz/workflows/.github/workflows/release-commit.yml@v1
9-
with:
10-
packages: "'./packages/*'"
11-
compact: true
10+
release-release:
11+
name: Release Commit
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Checkout
15+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
16+
with:
17+
persist-credentials: false
18+
fetch-depth: '1'
19+
20+
- name: Install pnpm
21+
uses: pnpm/action-setup@0e279bb959325dab635dd2c09392533439d90093
22+
23+
- name: Setup node
24+
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e
25+
with:
26+
node-version: lts/*
27+
cache: pnpm
28+
package-manager-cache: true
29+
registry-url: https://registry.npmjs.org
30+
31+
- name: Install dependencies
32+
shell: bash
33+
run: pnpm install
34+
35+
- name: Build
36+
run: pnpm run build
37+
38+
- name: Publish
39+
run: pnpm dlx pkg-pr-new@0.0 publish --pnpm --compact './packages/*'

.github/workflows/release.yml

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

88
jobs:
9-
release:
10-
uses: sxzz/workflows/.github/workflows/release.yml@v1
11-
with:
12-
publish: true
9+
release-release:
10+
name: Release
11+
runs-on: ubuntu-latest
1312
permissions:
1413
contents: write
1514
id-token: write
15+
steps:
16+
- name: Checkout
17+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
18+
with:
19+
persist-credentials: false
20+
fetch-depth: '0'
21+
22+
- name: Install pnpm
23+
uses: pnpm/action-setup@0e279bb959325dab635dd2c09392533439d90093
24+
25+
- name: Setup node
26+
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e
27+
with:
28+
node-version: lts/*
29+
cache: ''
30+
package-manager-cache: false
31+
registry-url: https://registry.npmjs.org
32+
33+
- name: Install dependencies
34+
shell: bash
35+
run: pnpm install
36+
37+
- name: Generate GitHub Changelog
38+
run: pnpx changelogithub
39+
continue-on-error: true
40+
env:
41+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
42+
43+
- name: Publish to NPM
44+
run: pnpm -r publish --access public --no-git-checks

.github/workflows/src/ci.yml

Lines changed: 103 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,103 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
pull_request:
9+
branches:
10+
- main
11+
12+
permissions:
13+
contents: read
14+
15+
jobs:
16+
lint:
17+
runs-on: ubuntu-latest
18+
steps:
19+
- uses: actions/checkout@v5
20+
21+
- name: Install pnpm
22+
uses: pnpm/action-setup@v6
23+
24+
- name: Set node
25+
uses: actions/setup-node@v5
26+
with:
27+
node-version: lts/*
28+
29+
- name: Setup
30+
run: npm i -g @antfu/ni
31+
32+
- name: Install
33+
run: nci
34+
35+
- name: Lint
36+
run: nr lint
37+
38+
- name: Build
39+
run: nr build
40+
41+
- name: Typecheck
42+
run: nr typecheck
43+
44+
test:
45+
runs-on: ${{ matrix.os }}
46+
47+
strategy:
48+
matrix:
49+
node: [lts/*]
50+
os: [ubuntu-latest, windows-latest, macos-latest]
51+
fail-fast: false
52+
53+
steps:
54+
- uses: actions/checkout@v5
55+
56+
- name: Install pnpm
57+
uses: pnpm/action-setup@v6
58+
59+
- name: Set node ${{ matrix.node }}
60+
uses: actions/setup-node@v5
61+
with:
62+
node-version: ${{ matrix.node }}
63+
64+
- name: Setup
65+
run: npm i -g @antfu/ni
66+
67+
- name: Install
68+
run: nci
69+
70+
- name: Build
71+
run: nr build
72+
73+
- name: Test
74+
run: nr test
75+
76+
e2e:
77+
runs-on: ubuntu-latest
78+
79+
steps:
80+
- uses: actions/checkout@v5
81+
82+
- name: Install pnpm
83+
uses: pnpm/action-setup@v6
84+
85+
- name: Set node
86+
uses: actions/setup-node@v5
87+
with:
88+
node-version: lts/*
89+
90+
- name: Setup
91+
run: npm i -g @antfu/ni
92+
93+
- name: Install
94+
run: nci
95+
96+
- name: Build
97+
run: nr build
98+
99+
- name: Install Chromium
100+
run: pnpm -C e2e exec playwright-core install --with-deps chromium
101+
102+
- name: E2E
103+
run: nr test:e2e

0 commit comments

Comments
 (0)