From fdf27c6464cb693aab177a208c9e3343dd9441f5 Mon Sep 17 00:00:00 2001 From: tush-tr Date: Fri, 26 May 2023 00:46:03 +0530 Subject: [PATCH] refactored --- .github/workflows/publish.yml | 5 +++-- package.json | 6 +++--- compose.js => src/compose.js | 0 git.js => src/git.js | 0 index.js => src/index.js | 0 5 files changed, 6 insertions(+), 5 deletions(-) rename compose.js => src/compose.js (100%) rename git.js => src/git.js (100%) rename index.js => src/index.js (100%) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 5fcb87e..37852fe 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -1,7 +1,8 @@ -name: Node.js Package +name: Node.js Package publish on: - push + release: + types: [published] jobs: publish-npm: diff --git a/package.json b/package.json index 53177d0..6914a6c 100644 --- a/package.json +++ b/package.json @@ -1,8 +1,8 @@ { "name": "vmdeploy", - "version": "1.1.0", + "version": "1.1.1", "description": "A GitOps Continuous Delivery Tool for VMs.", - "main": "index.js", + "main": "src/index.js", "scripts": { "test": "echo \"Error: no test specified\" && exit 1" }, @@ -22,6 +22,6 @@ "simple-git": "^3.18.0" }, "bin": { - "vmdeploy": "index.js" + "vmdeploy": "src/index.js" } } diff --git a/compose.js b/src/compose.js similarity index 100% rename from compose.js rename to src/compose.js diff --git a/git.js b/src/git.js similarity index 100% rename from git.js rename to src/git.js diff --git a/index.js b/src/index.js similarity index 100% rename from index.js rename to src/index.js