git commit -m "fix ci/cd pipeline with pnpm and mui transpilation" #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 | |
| on: | |
| push: | |
| branches: [main] | |
| jobs: | |
| deploy: | |
| runs-on: self-hosted | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version-file: '.nvmrc' | |
| - name: Install pnpm | |
| run: npm install -g pnpm | |
| - name: Install dependencies | |
| working-directory: ${{ github.workspace }} | |
| run: pnpm install --frozen-lockfile | |
| - name: Build | |
| working-directory: ${{ github.workspace }} | |
| run: pnpm run build | |
| - name: Restart app | |
| run: pm2 restart multimoco |