Skip to content

Commit

Permalink
update release script to set package json valuies regardless of npm (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
MOmarMiraj authored Jan 30, 2025
1 parent caf35b5 commit a1fff37
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions client/release/scripts/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,8 @@ fi
if [ "$core_modified" = true ]; then
# Wait for npm to be update to the latest version
wait_for_npm_publish @1password/sdk-core "${version_sdk_core}"
# Update @1password/sdk-core dependancy to the latest
npm install @1password/sdk-core@latest -E
# Set the package version regardless if npm published or not
npm pkg set dependencies.@1password/sdk-core="${version_sdk_core}"
fi

# Update sdk version number to the latest
Expand All @@ -109,8 +109,8 @@ fi

# Wait for npm to be update to the latest version
wait_for_npm_publish @1password/sdk "${version_sdk}"
# Update dependency in examples to run off the latest SDK
cd ../examples && npm install @1password/sdk@latest -E
# Set the package version regardless if npm published or not
cd ../examples && npm pkg set dependencies.@1password/sdk="${version_sdk}"

# Check if the latest SDK client is pulled correctly
cd ../ && npm install
Expand Down

0 comments on commit a1fff37

Please sign in to comment.