From 5c40c000c2d08df96bc4d25b8928377c2578d76c Mon Sep 17 00:00:00 2001 From: Leo Singer Date: Wed, 6 Nov 2024 09:49:05 -0500 Subject: [PATCH 1/2] Reuse org-level CI pipeline --- .github/workflows/node.js.yml | 20 +++++++------------- 1 file changed, 7 insertions(+), 13 deletions(-) diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index 44d5084..a499dd2 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -1,19 +1,13 @@ +name: Node.js CI on: push: branches: - main pull_request: - + branches: + - main jobs: - install: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - name: Install Node.js - uses: actions/setup-node@v4 - with: - node-version: '16' - - name: NPM Install - run: npm ci - - name: Run Prettier code style checks - run: npx prettier -c . + build: + uses: nasa-gcn/.github/.github/workflows/node.yml@main + secrets: + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} From 6c18988224250e2c681d78fe6475b6da653b0729 Mon Sep 17 00:00:00 2001 From: Leo Singer Date: Wed, 6 Nov 2024 09:52:39 -0500 Subject: [PATCH 2/2] Require Node.js >=16 --- package-lock.json | 23 ++++++++++++----------- package.json | 4 ++-- tsconfig.json | 2 +- 3 files changed, 15 insertions(+), 14 deletions(-) diff --git a/package-lock.json b/package-lock.json index afa26fe..fe29072 100644 --- a/package-lock.json +++ b/package-lock.json @@ -14,13 +14,13 @@ "openid-client": "^5.1.6" }, "devDependencies": { - "@tsconfig/node14": "^14.1.2", + "@tsconfig/node16": "^16.1.3", "@types/node": "^22.0.0", "prettier": "3.3.3", "typescript": "^5.5.3" }, "engines": { - "node": ">=14" + "node": ">=16" } }, "node_modules/@mongodb-js/zstd": { @@ -145,11 +145,12 @@ "node": ">= 10" } }, - "node_modules/@tsconfig/node14": { - "version": "14.1.2", - "resolved": "https://registry.npmjs.org/@tsconfig/node14/-/node14-14.1.2.tgz", - "integrity": "sha512-1vncsbfCZ3TBLPxesRYz02Rn7SNJfbLoDVkcZ7F/ixOV6nwxwgdhD1mdPcc5YQ413qBJ8CvMxXMFfJ7oawjo7Q==", - "dev": true + "node_modules/@tsconfig/node16": { + "version": "16.1.3", + "resolved": "https://registry.npmjs.org/@tsconfig/node16/-/node16-16.1.3.tgz", + "integrity": "sha512-9nTOUBn+EMKO6rtSZJk+DcqsfgtlERGT9XPJ5PRj/HNENPCBY1yu/JEj5wT6GLtbCLBO2k46SeXDaY0pjMqypw==", + "dev": true, + "license": "MIT" }, "node_modules/@types/node": { "version": "22.8.7", @@ -314,10 +315,10 @@ "integrity": "sha512-h3O9NGOrGtfQ7g+rFqs5Hn+GSmgF2ik+xg0/1crNUXWthcBsxcCK5woawHfDcJxWkaiijJe5PVo6/fo8Jm7qCg==", "optional": true }, - "@tsconfig/node14": { - "version": "14.1.2", - "resolved": "https://registry.npmjs.org/@tsconfig/node14/-/node14-14.1.2.tgz", - "integrity": "sha512-1vncsbfCZ3TBLPxesRYz02Rn7SNJfbLoDVkcZ7F/ixOV6nwxwgdhD1mdPcc5YQ413qBJ8CvMxXMFfJ7oawjo7Q==", + "@tsconfig/node16": { + "version": "16.1.3", + "resolved": "https://registry.npmjs.org/@tsconfig/node16/-/node16-16.1.3.tgz", + "integrity": "sha512-9nTOUBn+EMKO6rtSZJk+DcqsfgtlERGT9XPJ5PRj/HNENPCBY1yu/JEj5wT6GLtbCLBO2k46SeXDaY0pjMqypw==", "dev": true }, "@types/node": { diff --git a/package.json b/package.json index 49c53e6..d3e457a 100644 --- a/package.json +++ b/package.json @@ -31,10 +31,10 @@ ], "license": "CC0-1.0", "engines": { - "node": ">=14" + "node": ">=16" }, "devDependencies": { - "@tsconfig/node14": "^14.1.2", + "@tsconfig/node16": "^16.1.3", "@types/node": "^22.0.0", "prettier": "3.3.3", "typescript": "^5.5.3" diff --git a/tsconfig.json b/tsconfig.json index cecdca8..6725307 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "@tsconfig/node14/tsconfig.json", + "extends": "@tsconfig/node16/tsconfig.json", "compilerOptions": { "declaration": true }