Add ui packages publish workflow (#7743)

refactor/restore-class-loader-after-switch^2
Ryan Wang 2025-09-09 18:13:33 +08:00 committed by GitHub
parent 6992f1788c
commit b822de2d78
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
6 changed files with 33 additions and 5 deletions

View File

@ -0,0 +1,23 @@
name: Release UI Packages
permissions:
contents: write
id-token: write
on:
release:
types:
- published
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Environment
uses: ./.github/actions/setup-env
- run: pnpm install
- name: Publish to NPM
run: cd ui && pnpm run publish:packages

View File

@ -21,7 +21,8 @@
"lint": "eslint . --max-warnings=0 -f html -o build/lint-result/index.html", "lint": "eslint . --max-warnings=0 -f html -o build/lint-result/index.html",
"prettier": "prettier . --write", "prettier": "prettier . --write",
"typecheck:packages": "pnpm --parallel -r run typecheck", "typecheck:packages": "pnpm --parallel -r run typecheck",
"test:unit:packages": "pnpm --parallel -r run test:unit" "test:unit:packages": "pnpm --parallel -r run test:unit",
"publish:packages": "pnpm -r publish --access public --no-git-checks"
}, },
"lint-staged": { "lint-staged": {
"**/*": "prettier --write --ignore-unknown", "**/*": "prettier --write --ignore-unknown",

View File

@ -39,7 +39,8 @@
], ],
"scripts": { "scripts": {
"build": "tsdown", "build": "tsdown",
"gen": "rimraf --glob './src/**' && openapi-generator-cli generate -i ../../../api-docs/openapi/v3_0/aggregated.json -g typescript-axios -c ./.openapi_config.yaml -o ./src --type-mappings='set=Array'" "gen": "rimraf --glob './src/**' && openapi-generator-cli generate -i ../../../api-docs/openapi/v3_0/aggregated.json -g typescript-axios -c ./.openapi_config.yaml -o ./src --type-mappings='set=Array'",
"prepublishOnly": "pnpm run build"
}, },
"dependencies": { "dependencies": {
"qs": "^6.13.0" "qs": "^6.13.0"

View File

@ -47,7 +47,8 @@
"test:unit:coverage": "vitest run --coverage", "test:unit:coverage": "vitest run --coverage",
"test:unit:ui": "vitest --watch --ui", "test:unit:ui": "vitest --watch --ui",
"test:unit:watch": "vitest --watch", "test:unit:watch": "vitest --watch",
"typecheck": "vue-tsc --noEmit -p tsconfig.app.json --composite false" "typecheck": "vue-tsc --noEmit -p tsconfig.app.json --composite false",
"prepublishOnly": "pnpm run build"
}, },
"dependencies": { "dependencies": {
"floating-vue": "^5.2.2" "floating-vue": "^5.2.2"

View File

@ -36,7 +36,8 @@
"test:unit:coverage": "vitest run --environment jsdom --coverage", "test:unit:coverage": "vitest run --environment jsdom --coverage",
"test:unit:ui": "vitest --environment jsdom --watch --ui", "test:unit:ui": "vitest --environment jsdom --watch --ui",
"test:unit:watch": "vitest --environment jsdom --watch", "test:unit:watch": "vitest --environment jsdom --watch",
"typecheck": "vue-tsc --noEmit -p tsconfig.app.json --composite false" "typecheck": "vue-tsc --noEmit -p tsconfig.app.json --composite false",
"prepublishOnly": "pnpm run build"
}, },
"dependencies": { "dependencies": {
"@ckpack/vue-color": "^1.5.0", "@ckpack/vue-color": "^1.5.0",

View File

@ -30,7 +30,8 @@
"scripts": { "scripts": {
"build": "tsdown", "build": "tsdown",
"dev": "tsdown --watch", "dev": "tsdown --watch",
"typecheck": "tsc --noEmit -p tsconfig.app.json --composite false" "typecheck": "tsc --noEmit -p tsconfig.app.json --composite false",
"prepublishOnly": "pnpm run build"
}, },
"dependencies": { "dependencies": {
"@halo-dev/api-client": "workspace:*" "@halo-dev/api-client": "workspace:*"