diff --git a/.github/workflows/publish-npmjs.yml b/.github/workflows/publish-npmjs.yml deleted file mode 100644 index 39b5b3e..0000000 --- a/.github/workflows/publish-npmjs.yml +++ /dev/null @@ -1,41 +0,0 @@ -name: Publish Package to npmjs -on: [push, pull_request] -# on: -# push: -# branches: -# - release -jobs: - build: - runs-on: macos-latest - steps: - - uses: actions/checkout@v3 - - name: Set up Rust - uses: actions-rs/toolchain@v1 - with: - toolchain: stable - - name: Set up Node.js - uses: actions/setup-node@v3 - with: - node-version: '18' - - name: Set up nj-cli - run: cargo install nj-cli - - run: npm install - - run: rustc --print=target-list - - run: rustup target add arm-linux-androideabi - - run: rustup target add aarch64-linux-android - - run: rustup target add x86_64-linux-android - - run: rustup target add x86_64-apple-ios - - run: rustup target add aarch64-apple-ios - - run: rustup target add aarch64-apple-ios-sim - - name: Prebuild for iOS arm64 - run: npx prebuild-for-nodejs-mobile ios-arm64 --verbose - - name: Prebuild for Android arm64 - run: npx prebuild-for-nodejs-mobile android-arm64 --sdk33 --verbose - - name: Prebuild for Android armv7 - run: npx prebuild-for-nodejs-mobile android-arm --sdk33 --verbose - - name: Prebuild for Android x64 - run: npx prebuild-for-nodejs-mobile android-x64 --sdk33 --verbose - - name: Prebuild for iOS arm64 Simulator - run: npx prebuild-for-nodejs-mobile ios-arm64-simulator --verbose - - name: Prebuild for iOS x64 Simulator - run: npx prebuild-for-nodejs-mobile ios-x64-simulator --verbose \ No newline at end of file diff --git a/README.md b/README.md index 6853d08..9875567 100644 --- a/README.md +++ b/README.md @@ -39,7 +39,10 @@ Same as `npm run build-debug` but, builds the module with the [`release`](https: Runs the unit tests. -## Making prebuilds +## Releasing new versions + +You must first compile "prebuilds" for Android and iOS and this may require running on a macOS computer which has iOS specific CLI tools. + ### For Android @@ -101,3 +104,11 @@ npx prebuild-for-nodejs-mobile ios-arm64-simulator --verbose ``` npx prebuild-for-nodejs-mobile ios-x64-simulator --verbose ``` + +### Publishing on npm + +When the prebuilds are ready, make sure you have rights to publish to the `@railgun-community/poseidon-hash-rsjs` npm package, and then run + +``` +npm publish --access public +```