register nodes to node-red #2
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: TypeScript | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
permissions: | |
contents: read | |
jobs: | |
tsc: | |
name: "TSC" | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: "22" | |
cache: "npm" | |
- run: npm install | |
- run: | | |
npx tsc --noEmit | |
eslint: | |
name: "eslint" | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: "22" | |
cache: "npm" | |
- run: npm install | |
- run: npx eslint . | |
javascript_sync: | |
name: "Check for outdated JavaScript" | |
needs: tsc | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: "22" | |
cache: "npm" | |
- run: npm install | |
- run: rm -R dist/**/*.js | |
- run: | | |
npx tsc | |
- run: echo "::add-matcher::.github/diff.json" | |
- name: Show diff | |
run: | | |
git checkout -- package-lock.json | |
git diff --exit-code |