diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index 445d726..e6a17eb 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -5,27 +5,26 @@ name: Node.js CI on: push: - branches: [ "main" ] + branches: ["main"] pull_request: - branches: [ "main" ] + branches: ["main"] jobs: build: - runs-on: ubuntu-latest strategy: matrix: - node-version: [18.x, 20.x, 21.x] + node-version: [20.x, 21.x] # See supported Node.js release schedule at https://nodejs.org/en/about/releases/ steps: - - uses: actions/checkout@v3 - - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v3 - with: - node-version: ${{ matrix.node-version }} - cache: 'npm' - - run: npm ci - - run: npm run build --if-present - - run: npm test + - uses: actions/checkout@v3 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v3 + with: + node-version: ${{ matrix.node-version }} + cache: "npm" + - run: npm ci + - run: npm run build --if-present + - run: npm test diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 725840a..c313cf4 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -9,8 +9,8 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-node@v3 with: - node-version: '20.x' - registry-url: 'https://registry.npmjs.org' + node-version: "20.x" + registry-url: "https://registry.npmjs.org" - run: npm ci - run: npm publish env: diff --git a/package.json b/package.json index f328320..c89ca4a 100755 --- a/package.json +++ b/package.json @@ -33,6 +33,9 @@ "publishConfig": { "access": "public" }, + "engines": { + "node": ">=20" + }, "devDependencies": { "@babel/plugin-transform-runtime": "^7.23.6", "@babel/preset-env": "^7.23.6",