diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index 9c09a18..a499dd2 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -8,21 +8,6 @@ on: - main jobs: build: - runs-on: ubuntu-latest - strategy: - matrix: - node-version: ['16', '18'] - steps: - - uses: actions/checkout@v4 - - name: Install Node.js - uses: actions/setup-node@v4 - with: - node-version: ${{ matrix.node-version }} - - name: NPM Install - run: npm ci - - name: Run eslint linter - run: npx eslint --max-warnings 0 . - - name: Run Prettier code style checks - run: npx prettier -c . - - name: Upload to Codecov.io - uses: codecov/codecov-action@v3 + uses: nasa-gcn/.github/.github/workflows/node.yml@main + secrets: + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} diff --git a/package-lock.json b/package-lock.json index 02a3197..a5dbbe0 100644 --- a/package-lock.json +++ b/package-lock.json @@ -20,6 +20,9 @@ "lint-staged": "^15.2.7", "npm-run-all": "^4.1.5", "prettier": "^3.0.0" + }, + "engines": { + "node": ">=18" } }, "node_modules/@esbuild/aix-ppc64": { diff --git a/package.json b/package.json index 97d1d18..4d5ca44 100644 --- a/package.json +++ b/package.json @@ -22,6 +22,9 @@ "prepare:esbuild": "esbuild index.ts --bundle --packages=external --outfile=index.js --platform=node --format=esm --tree-shaking=true", "prepare": "run-p prepare:*" }, + "engines": { + "node": ">=18" + }, "devDependencies": { "@nasa-gcn/eslint-config-gitignore": "^0.0.2", "@tsconfig/node14": "^14.1.2",