diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index e7b9e31..5df91f7 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -1,4 +1,4 @@ -name: Publish package in github package registry +name: Publish Scan package in github package registry on: release: types: [created] @@ -7,6 +7,9 @@ on: jobs: build: runs-on: ubuntu-latest + strategy: + matrix: + node-version: [22.12.0] permissions: contents: read packages: write @@ -15,7 +18,7 @@ jobs: # Setup .npmrc file to publish to GitHub Packages - uses: actions/setup-node@v2 with: - node-version: '20.x' + node-version: ${{matrix.node-version}} registry-url: 'https://npm.pkg.github.com' - run: yarn env: diff --git a/index.js b/index.js index 7750f3d..54d6acb 100755 --- a/index.js +++ b/index.js @@ -1687,7 +1687,7 @@ class NodeClam { const { isInfected, viruses } = self._processResult(stdout, path); if (err) { - // Error code 1 means viruses were found... + // Error code 1 means viruses were found if (Object.prototype.hasOwnProperty.call(err, 'code') && err.code === 1) { return hasCb ? endCb(null, [], [path], viruses) diff --git a/package.json b/package.json index 0234848..b210006 100755 --- a/package.json +++ b/package.json @@ -32,7 +32,7 @@ ], "license": "MIT", "engines": { - "node": ">=16.0.0" + "node": ">=18.0.0" }, "devDependencies": { "@babel/eslint-parser": "^7.19.1",