Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Publish package in github package registry
name: Publish Scan package in github package registry
on:
release:
types: [created]
Expand All @@ -7,6 +7,9 @@ on:
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [22.12.0]
permissions:
contents: read
packages: write
Expand All @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
],
"license": "MIT",
"engines": {
"node": ">=16.0.0"
"node": ">=18.0.0"
},
"devDependencies": {
"@babel/eslint-parser": "^7.19.1",
Expand Down
Loading