Skip to content

Commit 218a88d

Browse files
committed
chore: upgrade dependencies
1 parent 0596862 commit 218a88d

File tree

5 files changed

+118
-10
lines changed

5 files changed

+118
-10
lines changed

.github/renovate.json5

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
3+
"extends": ["config:base", "schedule:monthly", "group:allNonMajor"],
4+
"rangeStrategy": "bump",
5+
"packageRules": [{ "depTypeList": ["peerDependencies"], "enabled": false }]
6+
}

.github/workflows/release.yml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
# This action will publish the package to npm and create a GitHub release.
2+
name: Release
3+
4+
on:
5+
# Run `npm run bump` to bump the version and create a git tag.
6+
push:
7+
tags:
8+
- "v*"
9+
10+
workflow_dispatch:
11+
12+
permissions:
13+
contents: write
14+
id-token: write
15+
16+
jobs:
17+
publish:
18+
runs-on: ubuntu-latest
19+
environment: npm
20+
steps:
21+
- name: Checkout
22+
uses: actions/checkout@v5
23+
24+
- name: Setup Node.js
25+
uses: actions/setup-node@v4
26+
with:
27+
node-version: 22.20.0
28+
29+
# Update npm to the latest version to enable OIDC
30+
# Use corepack to install pnpm
31+
- name: Setup Package Managers
32+
run: |
33+
npm install -g npm@latest
34+
npm --version
35+
npm install -g corepack@latest --force
36+
corepack enable
37+
38+
- name: Install Dependencies
39+
run: pnpm install
40+
41+
- name: Publish
42+
uses: JS-DevTools/npm-publish@v3
43+
with:
44+
token: empty
45+
46+
- name: Create GitHub Release
47+
uses: ncipollo/release-action@v1
48+
with:
49+
generateReleaseNotes: "true"

.github/workflows/test.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Test
2+
3+
# Controls when the action will run.
4+
on:
5+
# Triggers the workflow on pull request events but only for the main branch
6+
pull_request:
7+
branches: [main]
8+
push:
9+
branches: [main]
10+
# Allows you to run this workflow manually from the Actions tab
11+
workflow_dispatch:
12+
13+
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
14+
jobs:
15+
test:
16+
runs-on: ${{ matrix.os }}
17+
strategy:
18+
matrix:
19+
os: [ubuntu-latest, windows-latest]
20+
21+
# Steps represent a sequence of tasks that will be executed as part of the job
22+
steps:
23+
- name: Checkout
24+
uses: actions/checkout@v5
25+
26+
- name: Install Pnpm
27+
run: npm i -g corepack@latest --force && corepack enable
28+
29+
- name: Setup Node.js
30+
uses: actions/setup-node@v4
31+
with:
32+
node-version: 22.20.0
33+
cache: "pnpm"
34+
35+
- name: Install Dependencies
36+
run: pnpm install && npx playwright install chromium
37+
38+
- name: Run Test
39+
run: pnpm run test

package.json

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,16 @@
1212
},
1313
"files": ["dist"],
1414
"scripts": {
15-
"prepare": "npm run build",
15+
"bump": "npx bumpp",
16+
"prepare": "simple-git-hooks && npm run build",
1617
"dev": "rslib build -w",
1718
"build": "rslib build",
1819
"test": "vitest run",
19-
"format": "biome format"
20+
"format": "biome format",
21+
"lint:write": "biome check --unsafe --write"
22+
},
23+
"simple-git-hooks": {
24+
"pre-commit": "npm run lint:write"
2025
},
2126
"devDependencies": {
2227
"react": "^18.2.0",
@@ -26,6 +31,7 @@
2631
"@rslib/core": "0.15.1",
2732
"rsbuild-plugin-publint": "^0.3.3",
2833
"typescript": "^5.9.3",
34+
"simple-git-hooks": "^2.13.1",
2935
"@types/node": "^24.8.1",
3036
"@types/react": "^18.3.12",
3137
"@types/react-reconciler": "^0.28.0"

pnpm-lock.yaml

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

0 commit comments

Comments
 (0)