- Notifications
You must be signed in to change notification settings - Fork504
feat: use vite HRM to update user permission when assets.js change#213
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:CI | |
| on: | |
| push: | |
| branches:[ "main" ] | |
| pull_request: | |
| branches:[ "main" ] | |
| jobs: | |
| build-and-deploy: | |
| runs-on:ubuntu-latest | |
| strategy: | |
| matrix: | |
| node-version:[22.x] | |
| # See supported Node.js release schedule at https://nodejs.org/en/about/releases/ | |
| steps: | |
| -name:Checkout 🛎️ | |
| uses:actions/checkout@v3 | |
| -name:Setup pnpm | |
| uses:pnpm/action-setup@v2 | |
| with: | |
| version:9 | |
| -name:Setup Node.js ${{ matrix.node-version }} | |
| uses:actions/setup-node@v3 | |
| with: | |
| node-version:${{ matrix.node-version }} | |
| cache:'pnpm' | |
| -name:Install and Build 🔧 | |
| run:| | |
| pnpm install | |
| pnpm build | |
| -name:Deploy 🚀 | |
| uses:JamesIves/github-pages-deploy-action@v4 | |
| with: | |
| TOKEN:${{ secrets.ACCESS_TOKEN }} | |
| FOLDER:dist | |
| CLEAN:true | |