Skip to content

Commit

Permalink
improve bash script
Browse files Browse the repository at this point in the history
  • Loading branch information
eike-hass committed Feb 20, 2025
1 parent b061028 commit a64e1aa
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ jobs:
run: npm ci
working-directory: bindings/wasm/identity_wasm

- name: Install JS dependencies # This is problematic: The @iota/iota-sdk seems to not get used from the identity_wasm package
- name: Install JS dependencies # This is problematic: @iota/iota-sdk seems to not get used from the identity_wasm package, that is why reinstall deps here
run: npm ci
working-directory: bindings/wasm/iota_interaction_ts

Expand Down
7 changes: 6 additions & 1 deletion identity_iota_core/packages/iota_identity/deploy-package.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
#!/usr/bin/env bash

set -o errexit # abort on nonzero exitstatus
set -o nounset # abort on unbound variable
set -o pipefail # don't hide errors within pipes

json_output=$(iota client publish --skip-dependency-verification --with-unpublished-dependencies --json --gas-budget 500000000 .)
echo $json_output
package_id=$(echo $json_output | jq --raw-output '.objectChanges[] | select(.type | contains("published")) | .packageId')
echo "IOTA_IDENTITY_PKG_ID=$package_id"

0 comments on commit a64e1aa

Please sign in to comment.