diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 16efd46..32f2053 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -16,11 +16,12 @@ jobs: uses: actions/setup-node@v2.1.2 with: node-version: ${{ matrix.node-version }} - + - run: npm install -g node-red-dev - name: yarn, build and test run: | yarn yarn build + yarn validate - run: npx semantic-release if: ${{ github.ref == 'refs/heads/main' }} env: diff --git a/package.json b/package.json index fe8d117..010bf87 100644 --- a/package.json +++ b/package.json @@ -19,7 +19,8 @@ "test:watch": "jest --forceExit --detectOpenHandles --watchAll", "dev": "rm -rf dist && yarn copy && concurrently --kill-others --names \"COPY,EDITOR,RUNTIME,TEST\" --prefix \"({name})\" --prefix-colors \"yellow.bold,cyan.bold,greenBright.bold,magenta.bold\" \"onchange -v 'src/**/*.png' 'src/**/*.svg' -- yarn copy\" \"yarn build:editor:watch\" \"yarn build:runtime:watch\" \"yarn test:watch\"", "lint": "prettier --ignore-path .eslintignore --check '**/*.{js,ts,md}'; eslint --ext .js,.ts .", - "lint:fix": "prettier --ignore-path .eslintignore --write '**/*.{js,ts,md}'; eslint --ext .js,.ts . --fix" + "lint:fix": "prettier --ignore-path .eslintignore --write '**/*.{js,ts,md}'; eslint --ext .js,.ts . --fix", + "validate": "node-red-dev validate" }, "author": "Microsoft", "license": "MIT", @@ -27,7 +28,7 @@ "node": ">=12.0.0" }, "node-red": { - "version": ">=2.0.0", + "version": ">=1.3.7", "nodes": { "jacdac-report": "./dist/nodes/jacdac-report/jacdac-report.js", "jacdac-event": "./dist/nodes/jacdac-event/jacdac-event.js",