chore: setup prettier configs #57
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 CUFinder MCP | |
| on: | |
| push: | |
| branches: [ main, develop ] | |
| jobs: | |
| build: | |
| name: CUFinder CI | |
| strategy: | |
| matrix: | |
| os: | |
| - ubuntu-latest | |
| node_version: | |
| - 20.x | |
| architecture: | |
| - x64 | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - name: Get latest code | |
| uses: actions/checkout@v4 | |
| - name: Setup node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: ${{ matrix.node_version }} | |
| check-latest: false | |
| architecture: ${{ matrix.architecture }} | |
| - name: Setup corepack & pnpm | |
| run: corepack enable && corepack use pnpm@latest | |
| - name: Install dependencies | |
| run: pnpm i | |
| - name: Setup env file | |
| run: | | |
| touch .env.production | |
| echo NODE_ENV = production >> .env.production | |
| echo PORT = 4000 >> .env.production | |
| echo AUTH0_DOMAIN = ${{ secrets.AUTH0_DOMAIN }} >> .env.production | |
| echo AUTH0_CLIENT_ID = ${{ secrets.AUTH0_CLIENT_ID }} >> .env.production | |
| echo AUTH0_CLIENT_SECRET = ${{ secrets.AUTH0_CLIENT_SECRET }} >> .env.production | |
| echo AUTH0_CALLBACK_URL = ${{ secrets.AUTH0_CALLBACK_URL }} >> .env.production | |
| echo AUTH0_AUDIENCE = ${{ secrets.AUTH0_AUDIENCE }} >> .env.production | |
| - name: Build app | |
| run: pnpm build | |
| - name: Sync files | |
| uses: SamKirkland/FTP-Deploy-Action@4.3.3 | |
| with: | |
| server: ${{ secrets.FTP_SERVER }} | |
| username: ${{ secrets.FTP_USERNAME }} | |
| password: ${{ secrets.FTP_PASSWORD }} | |
| port: 21 | |
| protocol: ftps | |
| security: loose | |
| timeout: 600000 | |
| server-dir: public_html/mcp/ | |
| exclude: | | |
| **/.husky* | |
| **/.git* | |
| **/.git*/** | |
| **/.vscode/** | |
| **/node_modules/** | |
| **/src/** | |
| **/test/** | |
| .editorconfig | |
| .env | |
| .eslintrc.js | |
| .gitignore | |
| CHANGELOG.md | |
| nest-cli.json | |
| prettier.config.js | |
| README.md | |
| commitlint.config.js |