From 91f5ed0cd243a12f2580d91ada984791d584c694 Mon Sep 17 00:00:00 2001 From: "Tu.Le" Date: Wed, 27 Sep 2023 11:25:14 +0700 Subject: [PATCH] Update workflows cicd file and make trigger to deploy --- .github/workflows/publish.yml | 14 +++++++------- ethers-ext/package.json | 1 + web3j-ext/web3j-ext/build.gradle | 2 +- web3js-ext/package.json | 2 +- web3py-ext/setup.py | 2 +- web3rpc/rpc-specs/package.json | 2 +- 6 files changed, 12 insertions(+), 11 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 0267d0580..4338595d7 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -17,6 +17,13 @@ jobs: with: fetch-depth: 0 + - uses: nrwl/nx-set-shas@v3 + id: last_successful_commit_pr + with: + main-branch-name: "main" + workflow-id: "publish.yml" + last-successful-event: "pull-request" + - name: Setup Node uses: actions/setup-node@v3 with: @@ -38,13 +45,6 @@ jobs: cd web3rpc/codegen && gradle wrapper && gradle wrapper clean :deployJar && cd - &&\ cd web3rpc/rpc-specs && npm install && bash -x generate-namespace.sh && cd - - uses: nrwl/nx-set-shas@v3 - id: last_successful_commit_pr - with: - main-branch-name: "main" - workflow-id: "publish.yaml" - last-successful-event: "pull-request" - - name: Verify Changed files uses: tj-actions/changed-files@v39 id: verify-changed-files diff --git a/ethers-ext/package.json b/ethers-ext/package.json index 7480a2805..91010cbbb 100644 --- a/ethers-ext/package.json +++ b/ethers-ext/package.json @@ -37,4 +37,5 @@ "@klaytn/web3rpc": "^0.9.0", "lodash": "^4.17.21" } + } diff --git a/web3j-ext/web3j-ext/build.gradle b/web3j-ext/web3j-ext/build.gradle index 856473121..e66094c2f 100644 --- a/web3j-ext/web3j-ext/build.gradle +++ b/web3j-ext/web3j-ext/build.gradle @@ -89,4 +89,4 @@ nexusStaging { test { useJUnitPlatform() -} +} \ No newline at end of file diff --git a/web3js-ext/package.json b/web3js-ext/package.json index 9888f86d1..37053788e 100644 --- a/web3js-ext/package.json +++ b/web3js-ext/package.json @@ -39,4 +39,4 @@ "ethereum-cryptography": "^2.1.2", "lodash": "^4.17.21" } -} +} \ No newline at end of file diff --git a/web3py-ext/setup.py b/web3py-ext/setup.py index 7c94d3920..90c91579f 100644 --- a/web3py-ext/setup.py +++ b/web3py-ext/setup.py @@ -25,4 +25,4 @@ packages=find_packages(exclude=["test", "tests"]), include_package_data=True, license="MIT", -) +) \ No newline at end of file diff --git a/web3rpc/rpc-specs/package.json b/web3rpc/rpc-specs/package.json index 61096a782..bd0dd3e02 100644 --- a/web3rpc/rpc-specs/package.json +++ b/web3rpc/rpc-specs/package.json @@ -12,4 +12,4 @@ "dev": "redocly preview-docs", "build": "redocly bundle" } -} +} \ No newline at end of file