feat: updated documentation, new utility functions, and dependency up… #52
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Deploy ZenithUI Docs to Vercel | |
| on: | |
| push: | |
| tags: | |
| - "zenithui-docs@*" # Only zenithui-docs tags | |
| jobs: | |
| deploy: | |
| runs-on: ubuntu-latest | |
| env: | |
| VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }} | |
| VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }} | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 2 # Ensures full Git history | |
| ref: main # Ensure you check out a named branch | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: "lts/*" # Use the latest LTS version of Node.js | |
| registry-url: "https://registry.npmjs.org/" | |
| - name: Install pnpm | |
| run: npm install -g pnpm | |
| - name: Install Vercel CLI | |
| run: npm install --global vercel@latest | |
| - name: Install Dependencies | |
| run: pnpm install | |
| - name: Delete test route in docs | |
| run: | | |
| if [ -d "apps/zenithui-docs/src/app/test" ]; then | |
| rm -rf apps/zenithui-docs/src/app/test | |
| fi | |
| - name: Build ZenithUI Docs Packages | |
| run: pnpm build --filter zenithui-docs^... | |
| - name: Pull Vercel Environment Information | |
| run: npx vercel pull --yes --environment=production --token=${{ secrets.VERCEL_TOKEN }} | |
| - name: Build Project Artifacts | |
| run: npx vercel build --prod --token=${{ secrets.VERCEL_TOKEN }} | |
| - name: Deploy Project Artifacts to Vercel | |
| run: npx vercel deploy --prebuilt --prod --token=${{ secrets.VERCEL_TOKEN }} |