Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature: handling and externalisation improvements for account nonce updates #2176

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ updates:
schedule:
interval: monthly
open-pull-requests-limit: 10
versioning-strategy: increase
ignore:
# For all packages, ignore all minor & patch updates
- dependency-name: "*"
Expand All @@ -20,6 +21,7 @@ updates:
schedule:
interval: monthly
open-pull-requests-limit: 10
versioning-strategy: increase
ignore:
# For all packages, ignore all minor & patch updates
- dependency-name: "*"
Expand All @@ -30,6 +32,7 @@ updates:
schedule:
interval: monthly
open-pull-requests-limit: 10
versioning-strategy: increase
ignore:
# For all packages, ignore all minor & patch updates
- dependency-name: "*"
Expand All @@ -40,6 +43,7 @@ updates:
schedule:
interval: monthly
open-pull-requests-limit: 5
versioning-strategy: increase
ignore:
# For all packages, ignore all minor & patch updates
- dependency-name: "*"
Expand All @@ -50,6 +54,7 @@ updates:
schedule:
interval: monthly
open-pull-requests-limit: 5
versioning-strategy: increase
ignore:
# For all packages, ignore all minor & patch updates
- dependency-name: "*"
Expand Down
27 changes: 24 additions & 3 deletions .github/workflows/publish_release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ defaults:
shell: bash

permissions:
contents: read
contents: write

jobs:
validate-release:
Expand All @@ -30,6 +30,7 @@ jobs:
tag: ${{ steps.tag.outputs.name }}
version: ${{ steps.tag.outputs.version }}
prerelease: ${{ steps.tag.outputs.prerelease }}
type: ${{ steps.tag.outputs.type }}
steps:
- name: Checkout Code
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
Expand Down Expand Up @@ -71,10 +72,22 @@ jobs:

RELEASE_VERSION="$(semver get release "${REF_NAME}")"
PREREL_VERSION="$(semver get prerel "${REF_NAME}")"

PREREL_VERSION_LC="$(printf "%s" "${PREREL_VERSION}" | tr '[:upper:]' '[:lower:]')"

IS_PRERELEASE="false"
[[ -n "${PREREL_VERSION}" ]] && IS_PRERELEASE="true"

PREREL_TYPE="unknown"
if [[ "${IS_PRERELEASE}" == "true" ]]; then
if [[ "${PREREL_VERSION_LC}" =~ "beta" ]]; then
PREREL_TYPE="beta"
else
PREREL_TYPE="unknown"
fi
else
PREREL_TYPE="production"
fi

FINAL_VERSION="${RELEASE_VERSION}"
[[ -n "${PREREL_VERSION}" ]] && FINAL_VERSION="${RELEASE_VERSION}-${PREREL_VERSION}"

Expand All @@ -83,6 +96,7 @@ jobs:
echo "name=${TAG_NAME}" >>"${GITHUB_OUTPUT}"
echo "version=${FINAL_VERSION}" >>"${GITHUB_OUTPUT}"
echo "prerelease=${IS_PRERELEASE}" >>"${GITHUB_OUTPUT}"
echo "type=${PREREL_TYPE}" >>"${GITHUB_OUTPUT}"

- name: Validate Tag and Package Versions
run: |
Expand All @@ -92,6 +106,11 @@ jobs:
exit 1
fi

if [[ "${{ steps.tag.outputs.type }}" != "production" && "${{ steps.tag.outputs.type }}" != "beta" ]]; then
echo "::error title=Unsupported PreRelease::The tag '${{ steps.tag.outputs.name }}' is an unsupported prerelease tag. Only 'beta' prereleases are supported."
exit 2
fi

run-safety-checks:
name: Safety Checks
runs-on: [self-hosted, Linux, medium, ephemeral]
Expand Down Expand Up @@ -158,6 +177,8 @@ jobs:
run: |
PUBLISH_ARGS="--access public --no-git-checks"
[[ "${{ github.event.inputs.dry-run-enabled }}" == "true" ]] && PUBLISH_ARGS="${PUBLISH_ARGS} --dry-run"
[[ "${{ needs.validate-release.outputs.prerelease }}" == "true" ]] && PUBLISH_ARGS="${PUBLISH_ARGS} --tag ${{ needs.validate-release.outputs.type }}"

echo "args=${PUBLISH_ARGS}" >>"${GITHUB_OUTPUT}"
# Add the registry authentication stanza with variable substitution to the .npmrc configuration file.
echo '//registry.npmjs.org/:_authToken=${NPM_TOKEN}' >>".npmrc"
Expand All @@ -172,7 +193,7 @@ jobs:
if: ${{ github.event.inputs.dry-run-enabled != 'true' }}
with:
tag: ${{ steps.validate-release.outputs.tag }}
prerelease: ${{ steps.validate-release.outputs.prerelease == 'true' }}
prerelease: ${{ needs.validate-release.outputs.prerelease == 'true' }}
draft: false
generateReleaseNotes: true
skipIfReleaseExists: true
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
"@ethersproject/rlp": "^5.7.0",
"@grpc/grpc-js": "1.8.2",
"@hashgraph/cryptography": "1.4.8-beta.5",
"@hashgraph/proto": "2.14.0-beta.3",
"@hashgraph/proto": "2.14.0-beta.4",
"axios": "^1.6.4",
"bignumber.js": "^9.1.1",
"bn.js": "^5.1.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/proto/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@hashgraph/proto",
"version": "2.14.0-beta.3",
"version": "2.14.0-beta.4",
"description": "Protobufs for the Hedera™ Hashgraph SDK",
"main": "lib/index.js",
"browser": "src/index.js",
Expand Down
8 changes: 4 additions & 4 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/client/addressbooks/mainnet.js

Large diffs are not rendered by default.

Loading
Loading