Add sentry monitoring #51
This file contains 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: npm install and build | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
npm-build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Set up Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '20.x' | |
- name: Install dependencies | |
run: npm install | |
working-directory: ./task-launcher | |
- name: Cache npm dependencies | |
uses: actions/cache@v3 | |
with: | |
path: ./task-launcher/node_modules | |
key: ${{ runner.os }}-node-${{ hashFiles('**/task-launcher/package-lock.json') }} | |
restore-keys: | | |
${{ runner.os }}-node- | |
- name: Build the project | |
run: npm run build | |
working-directory: ./task-launcher |