diff --git a/.github/workflows/install.yml b/.github/workflows/install.yml new file mode 100644 index 0000000..5cd0291 --- /dev/null +++ b/.github/workflows/install.yml @@ -0,0 +1,20 @@ +name: NPM install +on: + push: + branches: + - main + workflow_dispatch: + +jobs: + install: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Install + run: | + mkdir my-app + cd my-app + npm init -y + npm install @unomed/react-native-matrix-sdk diff --git a/README.md b/README.md index 6e484bf..4aac323 100644 --- a/README.md +++ b/README.md @@ -7,6 +7,7 @@ [![android](https://github.com/unomed-dev/react-native-matrix-sdk/actions/workflows/build-android.yml/badge.svg)](https://github.com/unomed-dev/react-native-matrix-sdk/actions/workflows/build-android.yml) [![ios](https://github.com/unomed-dev/react-native-matrix-sdk/actions/workflows/build-ios.yml/badge.svg)](https://github.com/unomed-dev/react-native-matrix-sdk/actions/workflows/build-ios.yml) [![android](https://github.com/unomed-dev/react-native-matrix-sdk/actions/workflows/build-release.yml/badge.svg)](https://github.com/unomed-dev/react-native-matrix-sdk/actions/workflows/build-release.yml) +[![NPM install](https://github.com/unomed-dev/react-native-matrix-sdk/actions/workflows/install.yml/badge.svg)](https://github.com/unomed-dev/react-native-matrix-sdk/actions/workflows/install.yml) Powered by [uniffi-bindgen-react-native] and [create-react-native-library]. diff --git a/package.json b/package.json index f195100..feb2de1 100644 --- a/package.json +++ b/package.json @@ -94,13 +94,11 @@ "eslint-config-prettier": "^9.0.0", "eslint-plugin-prettier": "^5.0.1", "jest": "^29.7.0", - "patch-package": "^8.0.0", "prettier": "^3.0.3", "react": "18.3.1", "react-native": "0.76.9", "react-native-builder-bob": "^0.31.0", "release-it": "^15.0.0", - "tar": "^7.4.3", "turbo": "^1.10.7", "typescript": "^5.2.2", "uniffi-bindgen-react-native": "0.29.3-1" @@ -225,5 +223,10 @@ "type": "module-new", "languages": "cpp", "version": "0.41.2" + }, + "dependencies": { + "patch-package": "^8.0.0", + "postinstall-postinstall": "^2.1.0", + "tar": "^7.4.3" } } diff --git a/yarn.lock b/yarn.lock index df82a66..eb53d63 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4568,6 +4568,7 @@ __metadata: eslint-plugin-prettier: ^5.0.1 jest: ^29.7.0 patch-package: ^8.0.0 + postinstall-postinstall: ^2.1.0 prettier: ^3.0.3 react: 18.3.1 react-native: 0.76.9 @@ -12163,6 +12164,13 @@ __metadata: languageName: node linkType: hard +"postinstall-postinstall@npm:^2.1.0": + version: 2.1.0 + resolution: "postinstall-postinstall@npm:2.1.0" + checksum: e1d34252cf8d2c5641c7d2db7426ec96e3d7a975f01c174c68f09ef5b8327bc8d5a9aa2001a45e693db2cdbf69577094d3fe6597b564ad2d2202b65fba76134b + languageName: node + linkType: hard + "prelude-ls@npm:^1.2.1": version: 1.2.1 resolution: "prelude-ls@npm:1.2.1" @@ -14959,11 +14967,11 @@ __metadata: linkType: hard "yaml@npm:^2.2.2": - version: 2.8.0 - resolution: "yaml@npm:2.8.0" + version: 2.8.1 + resolution: "yaml@npm:2.8.1" bin: yaml: bin.mjs - checksum: 66f103ca5a2f02dac0526895cc7ae7626d91aa8c43aad6fdcff15edf68b1199be4012140b390063877913441aaa5288fdf57eca30e06268a8282dd741525e626 + checksum: 35b46150d48bc1da2fd5b1521a48a4fa36d68deaabe496f3c3fa9646d5796b6b974f3930a02c4b5aee6c85c860d7d7f79009416724465e835f40b87898c36de4 languageName: node linkType: hard