diff --git a/.github/workflows/publish-rn-siwn-to-npm.yaml b/.github/workflows/publish-rn-siwn-to-npm.yaml new file mode 100644 index 0000000..5dc9156 --- /dev/null +++ b/.github/workflows/publish-rn-siwn-to-npm.yaml @@ -0,0 +1,32 @@ +name: "Publish RN SIWN to NPM" + +on: + push: + branches: + - main + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + + - name: Setup Node.js + uses: actions/setup-node@v2 + with: + node-version: "20" + + - name: Install Dependencies + run: npm install + working-directory: ./react-native-sign-in-with-npm + + - name: Build Package + run: npm run build + working-directory: ./react-native-sign-in-with-npm + + - name: Set npm Config + run: npm config set //registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }} + + - name: Publish to npm + run: npm publish --access public + working-directory: ./react-native-sign-in-with-npm diff --git a/react-native-sign-in-with-neynar/package.json b/react-native-sign-in-with-neynar/package.json index 50892a3..e150697 100644 --- a/react-native-sign-in-with-neynar/package.json +++ b/react-native-sign-in-with-neynar/package.json @@ -1,14 +1,14 @@ { - "name": "neynar-test", - "version": "0.1.29", + "name": "@neynar/react-native-signin", + "version": "0.1.0", "keywords": [ - "react-native", - "expo", - "barometer", - "air pressure", - "rn-barometer" + "react-native-signin-with-neynar", + "neynar", + "react-native-sign-in-with-neynar", + "expo-sign-in-with-neynar", + "expo-neynar" ], - "author": "", + "author": "Neynar", "license": "MIT", "scripts": { "clean": "del-cli ./build/*",