From 25eca5456b37b580a942b5f9110798a3ac16795b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thoralf=20M=C3=BCller?= Date: Wed, 17 Apr 2024 16:44:28 +0200 Subject: [PATCH] Another attempt --- .github/workflows/bindings-nodejs-publish.yml | 73 ++++++++++--------- bindings/nodejs/gon-config.json | 6 +- 2 files changed, 41 insertions(+), 38 deletions(-) diff --git a/.github/workflows/bindings-nodejs-publish.yml b/.github/workflows/bindings-nodejs-publish.yml index ecc0e4d7c1..86f0156370 100644 --- a/.github/workflows/bindings-nodejs-publish.yml +++ b/.github/workflows/bindings-nodejs-publish.yml @@ -6,62 +6,63 @@ env: CARGO_INCREMENTAL: 0 jobs: - publish-nodejs: - runs-on: ubuntu-latest + # publish-nodejs: + # runs-on: ubuntu-latest - defaults: - run: - working-directory: bindings/nodejs + # defaults: + # run: + # working-directory: bindings/nodejs - steps: - - uses: actions/checkout@v3 + # steps: + # - uses: actions/checkout@v3 - - name: Set up Rust - uses: ./.github/actions/setup-rust + # - name: Set up Rust + # uses: ./.github/actions/setup-rust - # Required for ledger-nano - - name: Install required packages - run: | - sudo apt-get update - sudo apt-get install libudev-dev libusb-1.0-0-dev + # # Required for ledger-nano + # - name: Install required packages + # run: | + # sudo apt-get update + # sudo apt-get install libudev-dev libusb-1.0-0-dev - - name: Set up Node.js - uses: actions/setup-node@v3 - with: - node-version: "18.x" - registry-url: "https://registry.npmjs.org" + # - name: Set up Node.js + # uses: actions/setup-node@v3 + # with: + # node-version: "18.x" + # registry-url: "https://registry.npmjs.org" - - name: Install Yarn - run: npm i -g yarn + # - name: Install Yarn + # run: npm i -g yarn - - name: Install JS dependencies - run: yarn + # - name: Install JS dependencies + # run: yarn - - name: Build project - run: yarn build + # - name: Build project + # run: yarn build - - name: Update Cargo.toml with git - run: sed -i 's#path = "../core"#git = "https://github.com/iotaledger/iota-sdk", rev = "'$GITHUB_SHA'"#g' Cargo.toml + # - name: Update Cargo.toml with git + # run: sed -i 's#path = "../core"#git = "https://github.com/iotaledger/iota-sdk", rev = "'$GITHUB_SHA'"#g' Cargo.toml - - name: Print Cargo.toml - run: cat Cargo.toml + # - name: Print Cargo.toml + # run: cat Cargo.toml - - name: Publish nodejs bindings to NPM - shell: sh - env: - NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} - run: yarn publish --access public --tag alpha + # - name: Publish nodejs bindings to NPM + # shell: sh + # env: + # NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} + # run: yarn publish --access public --tag alpha nodejs-binding-prebuild: runs-on: ${{ matrix.os }} - needs: publish-nodejs + # needs: publish-nodejs strategy: fail-fast: false matrix: # The GitHub hosted Windows 2022 image comes with Visual Studio 2022, but node-gyp # (which is used by neon-sys) sadly fails to recognize it. As a mitigation, we still run the # tests on Windows 2019, until we can figure out a way to fix the problem. - os: [ubuntu-20.04, macos-13, windows-2019] + # os: [ubuntu-20.04, macos-13, windows-2019] + os: [macos-13] node-version: ["18.x"] steps: diff --git a/bindings/nodejs/gon-config.json b/bindings/nodejs/gon-config.json index 4f46ea1456..e478ebc2e7 100644 --- a/bindings/nodejs/gon-config.json +++ b/bindings/nodejs/gon-config.json @@ -1,8 +1,10 @@ { - "source": ["./build/Release/index.node"], + "source": [ + "./build/Release/index.node" + ], "bundle_id": "org.iota.sdk-nodejs", "apple_id": { - "password": "@env:AC_PASSWORD" + "provider": "UG77RJKZHH" }, "sign": { "application_identity": "Developer ID Application: IOTA Stiftung (UG77RJKZHH)"