diff --git a/.github/workflows/alert-publish.yml b/.github/workflows/publish-alert.yml similarity index 86% rename from .github/workflows/alert-publish.yml rename to .github/workflows/publish-alert.yml index bd4a156..eccebdd 100644 --- a/.github/workflows/alert-publish.yml +++ b/.github/workflows/publish-alert.yml @@ -7,7 +7,7 @@ permissions: on: push: tags: - - "@vue-nextui/alert@*" + - "@heroui-vue/alert@*" jobs: alert: diff --git a/.github/workflows/button-publish.yml b/.github/workflows/publish-button.yml similarity index 85% rename from .github/workflows/button-publish.yml rename to .github/workflows/publish-button.yml index 118357f..74938a3 100644 --- a/.github/workflows/button-publish.yml +++ b/.github/workflows/publish-button.yml @@ -7,7 +7,7 @@ permissions: on: push: tags: - - "@vue-nextui/button@*" + - "@heroui-vue/button@*" jobs: button: diff --git a/.github/workflows/core-publish.yml b/.github/workflows/publish-core.yml similarity index 91% rename from .github/workflows/core-publish.yml rename to .github/workflows/publish-core.yml index 48cd828..a494b73 100644 --- a/.github/workflows/core-publish.yml +++ b/.github/workflows/publish-core.yml @@ -3,7 +3,7 @@ name: Publish Core on: push: tags: - - "v*.*.*" + - "@heroui-vue/core@*.*.*" permissions: id-token: write @@ -15,8 +15,6 @@ jobs: defaults: run: working-directory: "packages/core" - env: - NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} steps: - name: Checkout diff --git a/.github/workflows/publish-heroui.yml b/.github/workflows/publish-heroui.yml new file mode 100644 index 0000000..d922b0e --- /dev/null +++ b/.github/workflows/publish-heroui.yml @@ -0,0 +1,45 @@ +name: Publish HeroUI Vue + +on: + push: + tags: + - "v*.*.*" + +permissions: + id-token: write + contents: read + +jobs: + publish: + runs-on: ubuntu-latest + defaults: + run: + working-directory: "packages/heroui-vue" + + steps: + - name: Checkout + uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - name: Setup pnpm + uses: pnpm/action-setup@v4 + + - name: Setup nodejs + uses: actions/setup-node@v4 + with: + cache: "pnpm" + node-version: "22" + registry-url: "https://registry.npmjs.org" + + - name: Install dependencies + run: pnpm install + + - name: Build + run: pnpm run build + + - name: Update npm + run: npm install -g npm@latest + + - name: Publish to npm + run: pnpm publish --tag latest --no-git-checks diff --git a/README.md b/README.md index 5b2339f..f015736 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@

- NextUI Vue -

NextUI Vue

+ heroui-vue Vue +

HeroUI Vue

diff --git a/docs/.vitepress/config.ts b/docs/.vitepress/config.ts index 07aad01..2156f3f 100644 --- a/docs/.vitepress/config.ts +++ b/docs/.vitepress/config.ts @@ -10,7 +10,7 @@ import tailwindcss from "@tailwindcss/vite"; // https://vitepress.dev/reference/site-config export default defineConfig({ - title: "NextUI Vue", + title: "HeroUI Vue", description: "Vue 3 Component Library based on HeroUI Theme", head: [["link", { rel: "icon", href: "/logo.png" }]], ignoreDeadLinks: true, @@ -32,15 +32,15 @@ export default defineConfig({ label: "English", lang: "en", link: "/en/", - title: "NextUI Vue", + title: "HeroUI Vue", description: "Vue 3 Component Library based on HeroUI Theme", themeConfig: { nav: [ { text: "Guide", link: "/en/guide/introduction" }, { text: "Components", link: "/en/components/button" }, { - text: "Playground[WIP]", - link: "https://github.com/nextui-vue/nextui-vue/pull/156", + text: "Playground", + link: "https://play.heroui.hotdogc.org", }, { text: "HeroUI", link: "https://heroui.com/" }, ], @@ -51,6 +51,10 @@ export default defineConfig({ items: [ { text: "Introduction", link: "/en/guide/introduction" }, { text: "Installation", link: "/en/guide/installation" }, + { + text: "Custom Installation", + link: "/en/guide/custom-installation", + }, ], }, { @@ -68,15 +72,15 @@ export default defineConfig({ label: "简体中文", lang: "zh", link: "/zh/", - title: "NextUI Vue", + title: "HeroUI Vue", description: "基于HeroUI Theme构建的Vue3组件库", themeConfig: { nav: [ { text: "指南", link: "/zh/guide/introduction" }, { text: "组件", link: "/zh/components/button" }, { - text: "演练场[开发中]", - link: "https://github.com/nextui-vue/nextui-vue/pull/156", + text: "演练场", + link: "https://play.heroui.hotdogc.org", }, { text: "HeroUI", link: "https://heroui.com/" }, ], @@ -87,6 +91,7 @@ export default defineConfig({ items: [ { text: "介绍", link: "/zh/guide/introduction" }, { text: "安装", link: "/zh/guide/installation" }, + { text: "自定义安装", link: "/zh/guide/custom-installation" }, ], }, { @@ -110,7 +115,14 @@ export default defineConfig({ outline: "deep", socialLinks: [ - { icon: "github", link: "https://github.com/nextui-vue/nextui-vue" }, + { + icon: "github", + link: "https://github.com/heroui-vue/heroui-vue", + }, + { + icon: "npm", + link: "https://www.npmjs.com/package/heroui-vue", + }, ], footer: { diff --git a/docs/I18N.md b/docs/I18N.md index 0d0ddb9..be0f857 100644 --- a/docs/I18N.md +++ b/docs/I18N.md @@ -1,6 +1,6 @@ # Internationalization (i18n) Setup -This document describes the internationalization setup for the NextUI Vue documentation site. +This document describes the internationalization setup for the HeroUI Vue documentation site. ## Overview @@ -43,7 +43,7 @@ locales: { root: { label: 'English', lang: 'en', - title: 'NextUI Vue', + title: 'HeroUI Vue', description: 'Vue 3 Component Library based on HeroUI Theme', themeConfig: { // English navigation and sidebar @@ -52,7 +52,7 @@ locales: { zh: { label: '简体中文', lang: 'zh-CN', - title: 'NextUI Vue', + title: 'HeroUI Vue', description: '基于HeroUI Theme构建的Vue3组件库', themeConfig: { // Chinese navigation and sidebar @@ -105,7 +105,7 @@ To add a new language: fr: { label: 'Français', lang: 'fr-FR', - title: 'NextUI Vue', + title: 'HeroUI Vue', description: 'Bibliothèque de composants Vue 3 basée sur le thème HeroUI', themeConfig: { nav: [ diff --git a/docs/en/components/alert.md b/docs/en/components/alert.md index 5579a9d..6b81c9f 100644 --- a/docs/en/components/alert.md +++ b/docs/en/components/alert.md @@ -1,5 +1,5 @@ # Alert @@ -8,16 +8,16 @@ Temporary notifications that provide concise feedback about actions or events ## Installation ::: code-group ```sh [npm] -npm add @vue-nextui/alert +npm add @heroui-vue/alert ``` ```sh [pnpm] -pnpm add @vue-nextui/alert +pnpm add @heroui-vue/alert ``` ```sh [yarn] -yarn add @vue-nextui/alert +yarn add @heroui-vue/alert ``` ```sh [bun] -bun add @vue-nextui/alert +bun add @heroui-vue/alert ``` ::: @@ -27,10 +27,10 @@ bun add @vue-nextui/alert ## Import ::: code-group ```js [On-demand import] -import { Alert } from '@vue-nextui/alert' +import { Alert } from '@heroui-vue/alert' ``` ```js [Global import] -import { Alert } from 'nextui-vue' +import { Alert } from 'heroui-vue' ``` ::: @@ -41,7 +41,7 @@ import { Alert } from 'nextui-vue' ::: code-group ```vue [Example]