Skip to content

Commit cbd8a9f

Browse files
committed
feat: add CI
1 parent dad323c commit cbd8a9f

2 files changed

Lines changed: 39 additions & 2 deletions

File tree

.github/workflows/publish-npm.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Publish NPM Package
2+
3+
on:
4+
workflow_dispatch:
5+
6+
jobs:
7+
publish:
8+
runs-on: ubuntu-latest
9+
10+
permissions:
11+
contents: read
12+
13+
steps:
14+
- name: Checkout
15+
uses: actions/checkout@v6
16+
17+
- name: Setup Node
18+
uses: actions/setup-node@v6
19+
with:
20+
node-version: 22
21+
registry-url: https://registry.npmjs.org/
22+
cache: yarn
23+
24+
- name: Enable Corepack
25+
run: corepack enable
26+
27+
- name: Install dependencies
28+
run: yarn install --immutable
29+
30+
- name: Build
31+
run: yarn prepare
32+
33+
- name: Publish
34+
run: npm publish --access public
35+
env:
36+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@pushpushgo/react-native-push",
3-
"version": "0.4.0",
3+
"version": "0.4.1",
44
"description": "PushPushGo Push Notifications SDK for React Native",
55
"main": "./lib/module/index.js",
66
"types": "./lib/typescript/src/index.d.ts",
@@ -55,7 +55,8 @@
5555
},
5656
"homepage": "https://github.com/ppgco/react-native-sdk#readme",
5757
"publishConfig": {
58-
"registry": "https://registry.npmjs.org/"
58+
"registry": "https://registry.npmjs.org/",
59+
"access": "public"
5960
},
6061
"devDependencies": {
6162
"@commitlint/config-conventional": "^19.8.1",

0 commit comments

Comments
 (0)