Skip to content

Commit 9a31bd7

Browse files
committed
ci: 修复版本号和更新时间未更新的问题
1 parent 3f4983e commit 9a31bd7

4 files changed

Lines changed: 15 additions & 12 deletions

File tree

‎bump.config.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import fs from 'node:fs/promises'
44
import pkg from './package.json' with { type: 'json' }
55

66
export default defineConfig({
7+
all: true,
78
async execute() {
89
const constantsFile = path.resolve(import.meta.dirname, './src/js/constants.js')
910

‎changelogithub.config.ts‎

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,13 @@ import { defineConfig } from 'changelogithub'
22

33
export default defineConfig({
44
types: {
5-
feat: { title: '🚀 Features' },
6-
fix: { title: '🐞 Bug Fixes' },
7-
perf: { title: '🏎 Performance' },
8-
chore: { title: '🧹 Chores' },
9-
style: { title: '🎨 Styles' },
10-
refactor: { title: '🔨 Refactors' },
11-
docs: { title: '📚 Documentation' },
12-
ci: { title: '⚙️ CI' },
13-
build: { title: '🏗 Build' },
5+
feat: { title: '🚀 新功能' },
6+
fix: { title: '🐞 问题修复' },
7+
perf: { title: '🏎 性能优化' },
8+
chore: { title: '🧹 杂项' },
9+
style: { title: '🎨 样式' },
10+
refactor: { title: '🔨 重构' },
11+
docs: { title: '📚 文档' },
12+
ci: { title: '⚙️ CI/CD' },
1413
},
1514
})

‎src/js/constants.js‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
export const VERSION = '1.6.1'
2-
export const UPDATED_AT = '2026-03-07T04:49:44.529Z'
1+
export const VERSION = '1.6.2'
2+
export const UPDATED_AT = '2026-03-07T04:59:16.008Z'
33
export const STORAGE_KEY = 'r2-manager-config'
44
export const THEME_KEY = 'r2-manager-theme'
55
export const LANG_KEY = 'r2-manager-lang'

jsconfig.json renamed to tsconfig.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,12 @@
44
"strict": true,
55
"strictNullChecks": false,
66
"target": "esnext",
7+
"noEmit": true,
78
"module": "esnext",
9+
"allowJs": true,
810
"moduleResolution": "bundler",
11+
"types": ["node"],
912
"lib": ["esnext", "DOM", "DOM.Iterable"]
1013
},
11-
"include": ["src/**/*.js"]
14+
"include": ["src/**/*.js", "bump.config.ts", "changelog.config.ts"]
1215
}

0 commit comments

Comments
 (0)