ci: update ci

Keep manifest-beta.json in sync with manifest.json
This commit is contained in:
moz 2026-06-03 14:05:39 +08:00
parent cd393f8189
commit 5f33a0fd00
4 changed files with 29 additions and 28 deletions

View file

@ -24,7 +24,7 @@ jobs:
- name: Build
run: |
npm ci
npm ci --legacy-peer-deps
npm run build
- name: Lint

50
.gitignore vendored
View file

@ -1,25 +1,25 @@
# vscode
.vscode
# Intellij
*.iml
.idea
# npm
node_modules
# Don't include the compiled main.js file in the repo.
# They should be uploaded to GitHub releases instead.
main.js
# Exclude sourcemaps
*.map
# obsidian
data.json
# Exclude macOS Finder (System Explorer) View States
.DS_Store
# Exclude IDE files
/.trae/*
# vscode
.vscode
# Intellij
*.iml
.idea
# npm
node_modules
# Don't include the compiled main.js file in the repo.
# They should be uploaded to GitHub releases instead.
main.js
# Exclude sourcemaps
*.map
# obsidian
data.json
# Exclude macOS Finder (System Explorer) View States
.DS_Store
# Exclude IDE files
/.trae/*

View file

@ -8,7 +8,7 @@
"build": "tsc -noEmit -skipLibCheck && node esbuild.config.mjs production",
"test:smoke": "npm run build && node -e \"console.log('smoke ok')\"",
"test:manual": "echo 'See TESTING.md for manual verification steps'",
"version": "node version-bump.mjs && git add manifest.json versions.json",
"version": "node version-bump.mjs && git add manifest.json manifest-beta.json versions.json",
"lint": "npx eslint src/**/*.ts",
"lint:fix": "npx eslint src/**/*.ts --fix",
"optimize-icons": "node scripts/optimize-icons.mjs"
@ -27,7 +27,7 @@
"eslint": "^8.57.1",
"eslint-plugin-obsidianmd": "^0.3.0",
"globals": "^17.0.0",
"obsidian": "latest",
"obsidian": "^1.13.0",
"svgo": "^4.0.0",
"tslib": "2.4.0",
"typescript": "^5.0.0",

View file

@ -10,6 +10,7 @@ writeFileSync("manifest.json", JSON.stringify(manifest, null, "\t"));
if (existsSync("manifest-beta.json")) {
let manifestBeta = JSON.parse(readFileSync("manifest-beta.json", "utf8"));
manifestBeta.version = targetVersion;
manifestBeta.minAppVersion = minAppVersion;
writeFileSync("manifest-beta.json", JSON.stringify(manifestBeta, null, "\t"));
}