Merge pull request #5 from RocketChat/ci #3
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: Build and Publish | |
| # Triggers the workflow on push or pull request events | |
| on: [push, pull_request] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - name: Setup Node.js environment | |
| uses: actions/[email protected] | |
| with: | |
| node-version: '22.11.0' | |
| - name: Install dependencies | |
| run: npm i | |
| - name: Install Rocket.Chat Apps cli | |
| run: npm i -g @rocket.chat/apps-cli | |
| - name: ESLint check | |
| run: npm run lint | |
| - name: Prettier check | |
| run: npm run prettier-check | |
| - name: Typescript check | |
| run: npm run typecheck | |
| - name: Bundle App | |
| run: rc-apps package |