Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 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
6 changes: 3 additions & 3 deletions .github/workflows/publish-npm.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Publish Package to npmjs
on:
release:
types: [published]
pull_request:
types: [opened, synchronize, reopened]
jobs:
build:
runs-on: ubuntu-latest
Expand All @@ -19,7 +19,7 @@ jobs:
echo "@internxt:registry=https://npm.pkg.github.com/" > .npmrc
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Point the repo to npmjs, not to the npm repository of GitHub

echo "//npm.pkg.github.com/:_authToken=${{ secrets.GITHUB_TOKEN }}" >> .npmrc
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In consequence, the GITHUB_TOKEN env will not do the job, as it only works with the GitHub API and only if it has the required permissions.

This should be the new line

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have already set the value of the NPM_TOKEN for you, so it should work now


- run: yarn
- run: npm publish --scope=@internxt --access public

# Change the registry to npmjs (to publish)
- run: |
Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@internxt/scan",
"version": "1.0.3",
"version": "1.0.6",
"author": "Kyle Farris <kyle.farris@infotechinc.com> (https://infotechinc.com)",
"description": "Use Node JS to scan files on your server with ClamAV's clamscan/clamdscan binary or via TCP to a remote server or local UNIX Domain socket. This is especially useful for scanning uploaded files provided by un-trusted sources.",
"main": "index.js",
Expand All @@ -17,9 +17,9 @@
],
"scripts": {
"docs": "jsdoc2md index.js lib/* > API.md",
"format": "node_modules/.bin/prettier '**/*.{js,json}' --write",
"lint": "node_modules/.bin/eslint '**/*.js'",
"lint:fix": "node_modules/.bin/eslint --fix '**/*.js'",
"format": "prettier '**/*.{js,json}' --write",
"lint": "eslint '**/*.js'",
"lint:fix": "eslint --fix '**/*.js'",
"test": "make test"
},
"keywords": [
Expand Down
Loading