diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a377592..3fabd05 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() 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",