Skip to content

Commit 4d8c6f3

Browse files
committed
chore: migrate project to pnpm and update CI configuration
- Added pnpm-related files to .gitignore - Updated .release-it.json to use pnpm for testing - Set package manager to pnpm in package.json - Modified README to reflect pnpm usage - Updated CI workflow to use pnpm for dependency installation and build steps, and upgraded action versions
1 parent 91163e0 commit 4d8c6f3

7 files changed

Lines changed: 12156 additions & 12 deletions

File tree

.github/workflows/ci.yml

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,26 +2,29 @@ name: CI
22

33
on:
44
push:
5-
branches: [main]
5+
branches: [master]
66
pull_request:
7-
branches: [main]
7+
branches: [master]
88

99
jobs:
1010
build:
1111
runs-on: ubuntu-latest
1212
steps:
13-
- uses: actions/checkout@v4
13+
- uses: actions/checkout@v6
14+
15+
- uses: pnpm/action-setup@v4
1416

1517
- name: Setup Node.js
16-
uses: actions/setup-node@v4
18+
uses: actions/setup-node@v6
1719
with:
18-
node-version: '20'
20+
node-version: "24"
21+
cache: pnpm
1922

2023
- name: Install dependencies
21-
run: npm install
24+
run: pnpm install --frozen-lockfile
2225

2326
- name: Build TypeScript
24-
run: npx expo-module build
27+
run: pnpm exec expo-module build
2528

2629
- name: Verify build output
27-
run: test -f build/index.js && test -f build/index.d.js || test -f build/index.d.ts
30+
run: test -f build/index.js && test -f build/index.d.ts

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,7 @@ ios/Pods/
99
*.xcworkspace
1010
*.xcuserdata
1111
package-lock.json
12+
yarn.lock
13+
.yarn/
14+
.pnp.*
15+
.pnpm-store/

.release-it.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"publish": true
1111
},
1212
"hooks": {
13-
"before:init": ["npm test"]
13+
"before:init": ["pnpm test"]
1414
},
1515
"plugins": {
1616
"@release-it/conventional-changelog": {

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@ Built as an Expo module — works with both Expo and bare React Native projects.
1717
npx expo install @monei-pay/react-native
1818
```
1919

20-
Or with npm/yarn:
20+
Or with npm/pnpm:
2121

2222
```bash
2323
npm install @monei-pay/react-native
2424
# or
25-
yarn add @monei-pay/react-native
25+
pnpm add @monei-pay/react-native
2626
```
2727

2828
### iOS Setup

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,5 +40,6 @@
4040
"expo": "*",
4141
"react": "*",
4242
"react-native": "*"
43-
}
43+
},
44+
"packageManager": "pnpm@10.33.0+sha512.10568bb4a6afb58c9eb3630da90cc9516417abebd3fabbe6739f0ae795728da1491e9db5a544c76ad8eb7570f5c4bb3d6c637b2cb41bfdcdb47fa823c8649319"
4445
}

0 commit comments

Comments
 (0)