Skip to content

Commit ab103a6

Browse files
authored
Config changes to publish the package to NPM (#4)
1 parent a0e1794 commit ab103a6

File tree

3 files changed

+28
-6
lines changed

3 files changed

+28
-6
lines changed

.github/workflows/publish-to-npm.yml

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Publish to NPM
2+
on:
3+
release:
4+
types: [created]
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v2
10+
# Setup .npmrc file to publish to npm
11+
- uses: actions/setup-node@v2
12+
with:
13+
node-version: '14.x'
14+
registry-url: 'https://registry.npmjs.org'
15+
- run: npm install
16+
- run: npm publish
17+
env:
18+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,11 @@ For a full list of external dependencies please consult `package.json`.
2929

3030
### NPM
3131

32-
`npm install nightfall-node-sdk`
32+
`npm install nightfall-js`
3333

3434
### Yarn
3535

36-
`yarn add nightfall-node-sdk`
36+
`yarn add nightfall-js`
3737

3838
### Building Locally
3939

package.json

+8-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
2-
"name": "nightfall",
2+
"name": "nightfall-js",
33
"version": "1.0.0",
4-
"description": "",
4+
"description": "Build data classification and protection into your application or service with Nightfall.",
55
"main": "dist/index.js",
66
"types": "dist/index.d.ts",
77
"files": [
@@ -12,9 +12,13 @@
1212
"prepare": "npm run build",
1313
"test": "jest --coverage"
1414
},
15-
"keywords": [],
15+
"keywords": [
16+
"data classification",
17+
"security"
18+
],
19+
"repository": "github:nightfallai/nightfall-nodejs-sdk",
1620
"author": "Nagarjun Palavalli <[email protected]>",
17-
"license": "ISC",
21+
"license": "MIT",
1822
"dependencies": {
1923
"axios": "^0.21.4"
2024
},

0 commit comments

Comments
 (0)