Skip to content

Commit

Permalink
Add publish to npm script
Browse files Browse the repository at this point in the history
  • Loading branch information
Shreyaschorge committed Jan 16, 2024
1 parent 2b65fb4 commit d88bf44
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 8 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/publish-rn-siwn-to-npm.yaml
Original file line number Diff line number Diff line change
@@ -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
16 changes: 8 additions & 8 deletions react-native-sign-in-with-neynar/package.json
Original file line number Diff line number Diff line change
@@ -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/*",
Expand Down

0 comments on commit d88bf44

Please sign in to comment.