From a93f08ac82eeba1525991a09c693acadc5bd501d Mon Sep 17 00:00:00 2001 From: millerm30 Date: Wed, 10 Dec 2025 14:22:40 -0330 Subject: [PATCH 1/5] Update package.json to modify repository URL format and add publish configuration - Changed the repository URL format to use 'git+' prefix for consistency. - Added 'publishConfig' section to specify public access for package publishing. --- package.json | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 8305f1b..374cc15 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,7 @@ "source": "js/index", "repository": { "type": "git", - "url": "https://github.com/notificationapi-com/notificationapi-react-native-sdk.git" + "url": "git+https://github.com/notificationapi-com/notificationapi-react-native-sdk.git" }, "keywords": [ "react-native", @@ -21,6 +21,9 @@ "author": "NotificationAPI", "license": "MIT", "homepage": "https://www.notificationapi.com", + "publishConfig": { + "access": "public" + }, "files": [ "js", "android", From 6a999afbc5585ccee7dbaa72a6bceb142b61420c Mon Sep 17 00:00:00 2001 From: millerm30 Date: Wed, 10 Dec 2025 15:53:13 -0330 Subject: [PATCH 2/5] Update CI workflow to enhance permissions and configuration - Added permissions for id-token and contents in the CI workflow. - Configured the Node.js setup step with the npm registry URL and scope for package publishing. --- .github/workflows/ci.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a377592..867f63a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -9,6 +9,9 @@ jobs: pipeline: name: Lint, Type Check & Publish runs-on: ubuntu-latest + permissions: + id-token: write + contents: read steps: - name: Checkout Code uses: actions/checkout@v4 @@ -17,6 +20,8 @@ jobs: uses: actions/setup-node@v4 with: node-version: "20" + registry-url: 'https://registry.npmjs.org' + scope: '@notificationapi' - name: Cache node_modules id: cache-modules @@ -41,8 +46,6 @@ jobs: - name: Publish id: publish uses: JS-DevTools/npm-publish@v4 - with: - token: ${{ secrets.NPM_AUTH_TOKEN }} - name: Send Slack notification for Success if: success() From 2b7d3d8e27533ac4184e67d90eb016ea641fdc2c Mon Sep 17 00:00:00 2001 From: millerm30 Date: Wed, 10 Dec 2025 16:52:40 -0330 Subject: [PATCH 3/5] 0.0.1-alpha.1 --- package-lock.json | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index e33a10c..5a9de2c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@notificationapi/react-native", - "version": "0.0.1", + "version": "0.0.1-alpha.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@notificationapi/react-native", - "version": "0.0.1", + "version": "0.0.1-alpha.1", "license": "MIT", "devDependencies": { "@eslint/js": "^9.39.1", diff --git a/package.json b/package.json index 374cc15..41651a9 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@notificationapi/react-native", - "version": "0.0.1", + "version": "0.0.1-alpha.1", "description": "React Native SDK for NotificationAPI - Push notifications for Android and iOS", "main": "js/index.ts", "types": "js/index.ts", From 6bff71eee6c55566469bcfb89997c3a117ff6b41 Mon Sep 17 00:00:00 2001 From: millerm30 Date: Wed, 10 Dec 2025 16:56:03 -0330 Subject: [PATCH 4/5] Update CI workflow for consistency in registry URL and scope formatting --- .github/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 867f63a..3fabd05 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -20,8 +20,8 @@ jobs: uses: actions/setup-node@v4 with: node-version: "20" - registry-url: 'https://registry.npmjs.org' - scope: '@notificationapi' + registry-url: "https://registry.npmjs.org" + scope: "@notificationapi" - name: Cache node_modules id: cache-modules From fe3970d31efb33fefcac81cb0df35468ccffa7f6 Mon Sep 17 00:00:00 2001 From: millerm30 Date: Wed, 10 Dec 2025 17:05:40 -0330 Subject: [PATCH 5/5] 0.0.1 --- package-lock.json | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index 5a9de2c..e33a10c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@notificationapi/react-native", - "version": "0.0.1-alpha.1", + "version": "0.0.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@notificationapi/react-native", - "version": "0.0.1-alpha.1", + "version": "0.0.1", "license": "MIT", "devDependencies": { "@eslint/js": "^9.39.1", diff --git a/package.json b/package.json index 41651a9..374cc15 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@notificationapi/react-native", - "version": "0.0.1-alpha.1", + "version": "0.0.1", "description": "React Native SDK for NotificationAPI - Push notifications for Android and iOS", "main": "js/index.ts", "types": "js/index.ts",