Skip to content

Commit 80dc61d

Browse files
authored
Merge pull request #1 from ariflogs/dev
added github workflow for npm deployment
2 parents 83d0ad5 + 6b2c8bb commit 80dc61d

File tree

2 files changed

+24
-1
lines changed

2 files changed

+24
-1
lines changed

.github/workflows/npm-deploy.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Deploy package to NPM
2+
on:
3+
push:
4+
branches:
5+
- main
6+
jobs:
7+
deploy:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: Checkout
11+
uses: actions/checkout@v4
12+
- name: Setup Node.js
13+
uses: actions/setup-node@v3
14+
with:
15+
node-version: 18
16+
registry-url: 'https://registry.npmjs.org'
17+
- name: Install dependencies and build 🔧
18+
run: npm ci && npm run build
19+
- name: Publish package on NPM 📦
20+
run: npm publish
21+
env:
22+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "sql-to-nosql",
3-
"version": "0.0.3",
3+
"version": "0.0.4",
44
"description": "Run SQL quries on your Mongodb database.",
55
"repository": {
66
"type": "git",
@@ -10,6 +10,7 @@
1010
"main": "dist/index.js",
1111
"scripts": {
1212
"start": "tsc && node dist/index.js",
13+
"build": "tsc",
1314
"test": "echo \"Error: no test specified\" && exit 1"
1415
},
1516
"author": "Arif Hossain",

0 commit comments

Comments
 (0)