Skip to content

Commit 080d57a

Browse files
authored
Chore/npm publish (#2)
* chore: add GitHub repo info * chore: add auto publish ci * chore: add bump version script * chore: bump version
1 parent 475c6cc commit 080d57a

3 files changed

Lines changed: 24 additions & 4 deletions

File tree

.github/workflows/publish.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: Publish to npm
2+
on:
3+
push:
4+
branches: [main]
5+
jobs:
6+
publish:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v4
10+
- uses: actions/setup-node@v4
11+
with:
12+
node-version: 20
13+
registry-url: https://registry.npmjs.org/
14+
- run: npm ci
15+
- run: npm publish

package-lock.json

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

package.json

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,22 @@
11
{
22
"name": "dual-subtitle",
3-
"version": "0.2.0",
3+
"version": "0.2.1",
44
"main": "index.js",
55
"type": "module",
66
"bin": {
77
"dual-subtitle": "./index.js"
88
},
99
"scripts": {
10-
"test": "node ./index.js ./data/"
10+
"test": "node ./index.js ./data/",
11+
"bumpVersion": "npx bbump"
1112
},
1213
"author": "helloint",
1314
"license": "MIT",
1415
"description": "Extract Chinese and English subtitles from streaming media like Netflix, and merge them into dual subtitles.",
16+
"repository": {
17+
"type": "git",
18+
"url": "https://github.com/helloint/dual-subtitle.git"
19+
},
1520
"dependencies": {
1621
"@ffmpeg-installer/ffmpeg": "^1.1.0",
1722
"ffprobe": "^1.1.2",

0 commit comments

Comments
 (0)