mirror of
https://github.com/lukaszraczylo/claude-mnemonic.git
synced 2026-06-05 23:03:55 +00:00
5fe25e9328
ui: Vite 8, vue-tsc 3, TypeScript 6, @vitejs/plugin-vue 6, vis-network 10, vis-data 8, FontAwesome 7, @types/node 25. docs: Vite 8, plugin-vue 6. Both migrated to Tailwind CSS v4. - Tailwind v3 -> v4: @import "tailwindcss" with @theme/@config, switch to @tailwindcss/postcss, drop autoprefixer (bundled via Lightning CSS). - docs: move theme into @theme, delete tailwind.config.js, remove stale pnpm-lock.yaml (npm/package-lock.json is authoritative). - ui: TypeScript 6 removes deprecated tsconfig baseUrl; no code changes needed for vis-network 10 / FontAwesome 7. - Bump CI Node 20 -> 22 (Vite 8 requires Node ^20.19 || >=22.12). 0 npm audit vulnerabilities; ui type-check and both production builds pass.
58 lines
1.1 KiB
YAML
58 lines
1.1 KiB
YAML
name: Deploy Website to GitHub Pages
|
|
|
|
on:
|
|
push:
|
|
branches: ["main"]
|
|
paths:
|
|
- "docs/**"
|
|
|
|
workflow_dispatch:
|
|
|
|
permissions:
|
|
contents: read
|
|
pages: write
|
|
id-token: write
|
|
|
|
concurrency:
|
|
group: "pages"
|
|
cancel-in-progress: false
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Setup Node.js
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: '22'
|
|
cache: 'npm'
|
|
cache-dependency-path: 'docs/package-lock.json'
|
|
|
|
- name: Install dependencies
|
|
run: cd docs && npm ci
|
|
|
|
- name: Build
|
|
run: cd docs && npm run build
|
|
|
|
- name: Setup Pages
|
|
uses: actions/configure-pages@v5
|
|
|
|
- name: Upload artifact
|
|
uses: actions/upload-pages-artifact@v3
|
|
with:
|
|
path: "docs/dist"
|
|
|
|
deploy:
|
|
environment:
|
|
name: github-pages
|
|
url: ${{ steps.deployment.outputs.page_url }}
|
|
runs-on: ubuntu-latest
|
|
needs: build
|
|
steps:
|
|
- name: Deploy to GitHub Pages
|
|
id: deployment
|
|
uses: actions/deploy-pages@v4
|