Skip to content

Update build script in package.json to run TypeScript compilation bef… #192

Update build script in package.json to run TypeScript compilation bef…

Update build script in package.json to run TypeScript compilation bef… #192

Workflow file for this run

name: CI
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v2
with:
persist-credentials: false
- name: FixForNodeWarnings
run: |
echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p
- name: Build
run: |
npm install
npm run test
npx eslint . --ext js,mjs,jsx,ts,mts,tsx --max-warnings 0
npm run build
- name: Broadcast update event
if: github.ref == 'refs/heads/main'
uses: gridsuite/broadcast-event@main
with:
token: ${{ secrets.REPO_ACCESS_TOKEN }}
event-type: powsybl-diagram-viewer-updated