File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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 }}
Original file line number Diff line number Diff line change 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" ,
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" ,
You can’t perform that action at this time.
0 commit comments