From 77dcdb7ea307c35b7c959adb07c513cf6eddb1eb Mon Sep 17 00:00:00 2001 From: Alexis THOMAS Date: Tue, 13 Feb 2024 23:53:21 +0100 Subject: [PATCH] publish as @ns0m/cordova-plugin-advanced-http --- .github/workflows/publish-npm.yml | 17 +++++++++++++++++ package-lock.json | 2 +- package.json | 10 +++++----- 3 files changed, 23 insertions(+), 6 deletions(-) create mode 100644 .github/workflows/publish-npm.yml diff --git a/.github/workflows/publish-npm.yml b/.github/workflows/publish-npm.yml new file mode 100644 index 00000000..95c3b121 --- /dev/null +++ b/.github/workflows/publish-npm.yml @@ -0,0 +1,17 @@ +name: Publish NPM +on: + release: + types: [created] +jobs: + publish-npm: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + with: + node-version: 18 + registry-url: https://registry.npmjs.org/ + - run: npm ci + - run: npm publish --access public + env: + NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} diff --git a/package-lock.json b/package-lock.json index 0ea97220..36cf5a68 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,5 +1,5 @@ { - "name": "cordova-plugin-advanced-http", + "name": "@ns0m/cordova-plugin-advanced-http", "version": "2.5.1", "lockfileVersion": 1, "requires": true, diff --git a/package.json b/package.json index 85749fbf..86872453 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "name": "cordova-plugin-advanced-http", + "name": "@ns0m/cordova-plugin-advanced-http", "version": "2.5.1", "description": "Cordova / Phonegap plugin for communicating with HTTP servers using SSL pinning", "scripts": { @@ -23,7 +23,7 @@ }, "repository": { "type": "git", - "url": "git+https://github.com/silkimen/cordova-plugin-advanced-http.git" + "url": "git+https://github.com/ns0m/cordova-plugin-advanced-http.git" }, "keywords": [ "cordova", @@ -54,9 +54,9 @@ ], "license": "MIT", "bugs": { - "url": "https://github.com/silkimen/cordova-plugin-advanced-http/issues" + "url": "https://github.com/ns0m/cordova-plugin-advanced-http/issues" }, - "homepage": "https://github.com/silkimen/cordova-plugin-advanced-http#readme", + "homepage": "https://github.com/ns0m/cordova-plugin-advanced-http#readme", "devDependencies": { "chai": "4.1.2", "chai-as-promised": "7.1.1", @@ -69,4 +69,4 @@ "wd": "1.4.1", "xml2js": "0.4.19" } -} \ No newline at end of file +}