From 5dc44b9dd78fdfaec91bc8301a540f3aa715600e Mon Sep 17 00:00:00 2001 From: Thusaraka Palliyeguru <87273240+thusarakap@users.noreply.github.com> Date: Mon, 25 Mar 2024 07:30:58 +0530 Subject: [PATCH] Updated package.json and workflow YML file --- .github/workflows/main.yml | 8 +++++++- package.json | 9 +++++++-- 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 4beba36..e0c1417 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -18,6 +18,9 @@ jobs: with: node-version: '14' + - name: Authenticate with GitHub + run: echo "${{ secrets.GH_TOKEN }}" | npm login --registry=https://npm.pkg.github.com --scope=@thusarakap --stdin + - name: Install Dependencies run: npm install @@ -25,4 +28,7 @@ jobs: run: npm test - name: Build - run: npm run build \ No newline at end of file + run: npm run build + + - name: Publish + run: npm publish \ No newline at end of file diff --git a/package.json b/package.json index 175e67c..9070506 100644 --- a/package.json +++ b/package.json @@ -27,13 +27,18 @@ "text-encoding": "^0.7.0" }, "build": { - "appId": "com.CS31.soundsculpt", + "appId": "com.CS31.SoundSculpt", "win": { - "target": "nsis" + "target": "nsis", + "icon": "resources/images/soundSculptIcon.ico" }, "nsis": { "oneClick": false, "allowToChangeInstallationDirectory": true } + }, + "publishConfig": { + "registry":"https://npm.pkg.github.com/thusarakap", + "access": "public" } }