Skip to content

Commit e524b85

Browse files
committed
chore: setup userscript
1 parent f6dd622 commit e524b85

4 files changed

Lines changed: 497 additions & 15 deletions

File tree

.github/workflows/release.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Release
2+
3+
permissions:
4+
contents: write
5+
6+
on:
7+
push:
8+
tags:
9+
- 'v*'
10+
11+
jobs:
12+
release:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v3
16+
with:
17+
fetch-depth: 0
18+
19+
- name: Install pnpm
20+
uses: pnpm/action-setup@v2
21+
22+
- name: Set node
23+
uses: actions/setup-node@v3
24+
with:
25+
node-version: 18.x
26+
cache: pnpm
27+
28+
- run: npx changelogithub
29+
env:
30+
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

package.json

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,23 +2,35 @@
22
"name": "userscript-bilibili-comment-search",
33
"private": true,
44
"version": "0.0.0",
5+
"description": "Support searching comments in Bilibili.",
56
"type": "module",
7+
"packageManager": "[email protected]",
8+
"author": "pacexy <[email protected]>",
9+
"license": "MIT",
10+
"homepage": "https://github.com/pacexy/userscript-bilibili-comment-search#readme",
11+
"repository": {
12+
"type": "git",
13+
"url": "git+https://github.com/pacexy/userscript-bilibili-comment-search.git"
14+
},
15+
"bugs": "https://github.com/pacexy/userscript-bilibili-comment-search/issues",
616
"scripts": {
717
"dev": "vite",
818
"build": "tsc && vite build",
9-
"preview": "vite preview"
19+
"preview": "vite preview",
20+
"release": "bumpp package.json"
1021
},
1122
"dependencies": {
1223
"react": "^18.2.0",
1324
"react-dom": "^18.2.0",
1425
"react-highlight-words": "^0.20.0"
1526
},
1627
"devDependencies": {
17-
"@types/react": "^18.2.7",
28+
"@types/react": "^18.2.8",
1829
"@types/react-dom": "^18.2.4",
1930
"@types/react-highlight-words": "^0.16.4",
2031
"@vitejs/plugin-react": "^4.0.0",
21-
"typescript": "^5.0.4",
32+
"bumpp": "9.1.0",
33+
"typescript": "^5.1.3",
2234
"vite": "^4.3.9",
2335
"vite-plugin-monkey": "^3.2.2"
2436
}

0 commit comments

Comments
 (0)