feat(ui): 优化验证码复制交互与移动端默认布局,修复依赖安全漏洞 #7
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 to Prisma Compute | |
| on: | |
| push: | |
| branches: | |
| - main | |
| workflow_dispatch: | |
| jobs: | |
| prisma: | |
| name: "Deploy to Prisma Compute" | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| defaults: | |
| run: | |
| working-directory: platforms/prisma | |
| steps: | |
| - name: Checkout Code | |
| uses: actions/checkout@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 24 | |
| cache: 'npm' | |
| - name: Check Required Secrets | |
| run: | | |
| REQUIRED=(PRISMA_SERVICE_TOKEN PRISMA_PROJECT_ID PRISMA_APP_NAME) | |
| for var in "${REQUIRED[@]}"; do | |
| if [ -z "${!var}" ]; then | |
| echo "❌ Error: $var is missing in GitHub Secrets." | |
| exit 1 | |
| fi | |
| done | |
| env: | |
| PRISMA_SERVICE_TOKEN: ${{ secrets.PRISMA_SERVICE_TOKEN }} | |
| PRISMA_PROJECT_ID: ${{ secrets.PRISMA_PROJECT_ID }} | |
| PRISMA_APP_NAME: ${{ secrets.PRISMA_APP_NAME }} | |
| - name: Inject Commit Hash & Platform | |
| run: node scripts/inject_vars.js --platform=prisma | |
| - name: Update Prisma Configuration | |
| run: | | |
| node scripts/update_prisma.js | |
| working-directory: platforms/prisma | |
| env: | |
| PRISMA_APP_NAME: ${{ secrets.PRISMA_APP_NAME }} | |
| - name: Deploy via Prisma CLI | |
| working-directory: platforms/prisma | |
| run: npx @prisma/cli app deploy --app ${{ secrets.PRISMA_APP_NAME }} --project ${{ secrets.PRISMA_PROJECT_ID }} --region ${{ secrets.PRISMA_APP_REGION || 'eu-central-1' }} --branch main --prod --yes | |
| env: | |
| PRISMA_SERVICE_TOKEN: ${{ secrets.PRISMA_SERVICE_TOKEN }} | |
| - name: Success Notification | |
| run: echo "🚀 NodeAuth deployed successfully to Prisma Compute!" |