Skip to content

Commit 25ae0e5

Browse files
committed
Merge branch 'main' into feat/compiler-hints
2 parents 6e91245 + a72bc11 commit 25ae0e5

Some content is hidden

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

72 files changed

+8906
-12870
lines changed

.circleci/config.yml

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

.eslintignore

Lines changed: 0 additions & 1 deletion
This file was deleted.

.eslintrc.js

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

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,22 +2,24 @@
22
name: 🐛 Report Bug
33
about: Report Bug.
44
title: '[BUG] Report bug'
5-
labels: 'bug'
65
assignees:
76
---
87

98
### 🐛 Bug description
109

11-
1210
<!-- Please describe the bug in detail above so that everyone can understand. -->
1311

14-
### 🏞 Desired result
12+
### 📝 Steps to reproduce
13+
14+
<!-- Please describe the steps to reproduce the bug above. -->
1515

16+
Reproduction Link (required): <!-- Please provide a link to a reproduction case. -->
17+
18+
### 🏞 Desired result
1619

1720
<!-- Please describe above what you expected to see. -->
1821

1922
### 🚑 Other information
2023

21-
2224
<!-- Please enter other information such as screenshots above. -->
2325
<!-- From: https://github.com/one-template/issue-template -->

.github/ISSUE_TEMPLATE/question.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,13 @@ assignees: ''
88

99
### 🧐 Problem Description
1010

11-
1211
<!-- Describe the problem in detail so that everyone can understand. -->
1312

1413
### 💻 Sample code
1514

16-
1715
<!-- If you have a solution, state it clearly here. -->
1816

1917
### 🚑 Other information
2018

21-
2219
<!-- Other information such as screenshots can be posted here. -->
2320
<!-- From: https://github.com/one-template/issue-template -->

.github/dependabot.yml

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

.github/renovate.json5

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
$schema: 'https://docs.renovatebot.com/renovate-schema.json',
3+
extends: [
4+
'github>haoqunjiang/renovate-presets:npm.json5',
5+
'schedule:monthly',
6+
],
7+
packageRules: [
8+
{
9+
depTypeList: ['peerDependencies'],
10+
enabled: false,
11+
},
12+
],
13+
}

.github/workflows/ci.yml

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
name: CI
2+
3+
permissions: {}
4+
5+
on:
6+
push:
7+
branches:
8+
- main
9+
pull_request:
10+
workflow_dispatch:
11+
12+
concurrency:
13+
group: ${{ github.workflow }}-${{ github.event.number || github.sha }}
14+
cancel-in-progress: true
15+
16+
jobs:
17+
test:
18+
timeout-minutes: 20
19+
runs-on: ubuntu-latest
20+
name: Unit Test
21+
steps:
22+
- name: Checkout
23+
uses: actions/checkout@v4
24+
25+
- name: Install pnpm
26+
uses: pnpm/[email protected]
27+
28+
- name: Setup node
29+
uses: actions/setup-node@v4
30+
with:
31+
node-version: lts/*
32+
cache: pnpm
33+
34+
- name: Install deps
35+
run: pnpm install
36+
37+
- name: Build
38+
run: pnpm run build
39+
40+
- name: Test unit
41+
run: pnpm run test
42+
43+
lint:
44+
timeout-minutes: 10
45+
runs-on: ubuntu-latest
46+
name: Lint
47+
steps:
48+
- name: Checkout
49+
uses: actions/checkout@v4
50+
51+
- name: Install pnpm
52+
uses: pnpm/[email protected]
53+
54+
- name: Setup node
55+
uses: actions/setup-node@v4
56+
with:
57+
node-version: lts/*
58+
cache: pnpm
59+
60+
- name: Install deps
61+
run: pnpm install
62+
63+
- name: Lint
64+
run: pnpm run lint
65+
66+
- name: Check formatting
67+
run: pnpm prettier --check .
68+
69+
- name: Typecheck
70+
run: pnpm run typecheck

.github/workflows/emoji-helper.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: Emoji Helper
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
jobs:
8+
emoji:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions-cool/[email protected]
12+
with:
13+
type: 'release'
14+
emoji: '+1, laugh, heart, hooray, rocket, eyes'

.github/workflows/issue-reply.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
steps:
1111
- name: help wanted
1212
if: github.event.label.name == 'help wanted'
13-
uses: actions-cool/issues-helper@v2.1.1
13+
uses: actions-cool/issues-helper@v3
1414
with:
1515
actions: 'create-comment'
1616
issue-number: ${{ github.event.issue.number }}
@@ -19,7 +19,7 @@ jobs:
1919
2020
- name: need reproduction
2121
if: github.event.label.name == 'need reproduction'
22-
uses: actions-cool/issues-helper@v2.1.1
22+
uses: actions-cool/issues-helper@v3
2323
with:
2424
actions: 'create-comment'
2525
issue-number: ${{ github.event.issue.number }}

.github/workflows/release.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*'
7+
8+
jobs:
9+
release:
10+
runs-on: ubuntu-latest
11+
permissions:
12+
contents: write
13+
id-token: write
14+
15+
steps:
16+
- uses: actions/checkout@v4
17+
with:
18+
fetch-depth: 0
19+
20+
- name: Install pnpm
21+
uses: pnpm/action-setup@v2
22+
23+
- name: Set node
24+
uses: actions/setup-node@v4
25+
with:
26+
node-version: lts/*
27+
cache: pnpm
28+
registry-url: 'https://registry.npmjs.org'
29+
30+
- run: npx changelogithub
31+
continue-on-error: true
32+
env:
33+
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
34+
35+
- name: Install Dependencies
36+
run: pnpm i
37+
38+
- name: PNPM build
39+
run: pnpm run build
40+
41+
- name: Publish to NPM
42+
run: pnpm -r publish --access public --no-git-checks
43+
env:
44+
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
45+
NPM_CONFIG_PROVENANCE: true

0 commit comments

Comments
 (0)