Add workflow for theme releasing

Signed-off-by: Ryan Wang <i@ryanc.cc>
This commit is contained in:
Ryan Wang
2025-04-03 11:35:36 +08:00
parent 8f6f523373
commit 7c60b00752
3 changed files with 2287 additions and 1182 deletions
+21
View File
@@ -0,0 +1,21 @@
name: CD
on:
release:
types:
- published
jobs:
cd:
# https://github.com/halo-sigs/reusable-workflows?tab=readme-ov-file#theme
uses: halo-sigs/reusable-workflows/.github/workflows/theme-cd.yaml@v3
secrets:
halo-pat: ${{ secrets.HALO_PAT }}
permissions:
contents: write
with:
# if you have permission to release to appstore, please set this to false and set the app-id
skip-appstore-release: true
app-id: app-foo
pnpm-version: 10
node-version: 20
+11 -31
View File
@@ -1,32 +1,8 @@
{
"description": "A development starter theme with Vite Ecosystem for Halo",
"keywords": [
"halo",
"halo-theme"
],
"homepage": "https://github.com/halo-dev/theme-vite-starter#readme",
"bugs": {
"url": "https://github.com/halo-dev/theme-vite-starter/issues"
},
"repository": {
"type": "git",
"url": "https://github.com/halo-dev/theme-vite-starter"
},
"license": "GPL-3.0",
"author": {
"name": "Halo",
"email": "hi@halo.run",
"url": "https://github.com/halo-dev"
},
"maintainers": [
{
"name": "Ryan Wang",
"email": "i@ryanc.cc",
"url": "https://github.com/ruibaby"
}
],
"scripts": {
"build": "tsc && vite build",
"build": "tsc && vite build && theme-package",
"build-only": "tsc && vite build",
"dev": "vite build --watch",
"lint": "eslint ./src --ext .js,.cjs,.mjs,.ts,.cts,.mts --ignore-path .gitignore",
"prepare": "husky",
@@ -37,17 +13,21 @@
"prettier --write"
]
},
"dependencies": {
"@halo-dev/theme-package-cli": "^1.0.0"
},
"devDependencies": {
"@types/node": "18.11.9",
"@typescript-eslint/eslint-plugin": "^5.62.0",
"@typescript-eslint/parser": "^5.62.0",
"eslint": "^8.57.0",
"eslint": "^8.57.1",
"eslint-config-prettier": "^8.10.0",
"eslint-plugin-prettier": "^4.2.1",
"husky": "^9.0.11",
"lint-staged": "^15.2.2",
"husky": "^9.1.7",
"lint-staged": "^15.5.0",
"prettier": "^2.8.8",
"typescript": "^4.9.5",
"vite": "^5.1.6"
}
"vite": "^5.4.16"
},
"packageManager": "pnpm@10.6.5+sha512.cdf928fca20832cd59ec53826492b7dc25dc524d4370b6b4adbf65803d32efaa6c1c88147c0ae4e8d579a6c9eec715757b50d4fa35eea179d868eada4ed043af"
}
+2240 -1136
View File
File diff suppressed because it is too large Load Diff