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
38 changes: 24 additions & 14 deletions .github/workflows/publish-npm.yml
Original file line number Diff line number Diff line change
@@ -1,29 +1,39 @@
name: Publish Package to npmjs
name: Publish package to npmjs

on:
release:
types: [published]

jobs:
build:
publish_npm:
runs-on: ubuntu-latest

permissions:
contents: read
id-token: write
packages: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '20.x'

- run: |
echo "@internxt:registry=https://npm.pkg.github.com/" > .npmrc
echo "//npm.pkg.github.com/:_authToken=${{ secrets.GITHUB_TOKEN }}" >> .npmrc
steps:
- name: Checkout code
uses: actions/checkout@v4

- run: yarn
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 22

# Change the registry to npmjs (to publish)
- run: |
- name: Create .npmrc file
run: |
echo "registry=https://registry.npmjs.org/" > .npmrc
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" >> .npmrc

- run: npm publish --scope=@internxt --access public
- name: Publish package to npm
run: npm publish --scope=@internxt --access public

- name: Create .npmrc file
run: |
echo "@internxt:registry=https://npm.pkg.github.com/" > .npmrc
echo "//npm.pkg.github.com/:_authToken=${{ secrets.GITHUB_TOKEN }}" >> .npmrc

- name: Publish package to github
run: npm publish --scope=@internxt --access public
28 changes: 0 additions & 28 deletions .github/workflows/publish.yml

This file was deleted.

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.7",
"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