From 7123c37b96d51bae3830d6326a2f8a82b51610bf Mon Sep 17 00:00:00 2001 From: phutx Date: Thu, 7 Dec 2023 15:58:06 +0700 Subject: [PATCH 1/3] update workflow step install --- .github/workflows/publish_package.yml | 12 ++++++------ .github/workflows/publish_staging_package.yml | 12 ++++++------ 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/.github/workflows/publish_package.yml b/.github/workflows/publish_package.yml index ca279fe5..a7ecf5bd 100644 --- a/.github/workflows/publish_package.yml +++ b/.github/workflows/publish_package.yml @@ -74,12 +74,12 @@ jobs: id: install if: steps.publish.outcome != 'failure' continue-on-error: true - uses: appleboy/ssh-action@master + uses: peter-evans/repository-dispatch@v2 with: - host: ${{ secrets.DOCKER_SWARM_MANAGER_ONE }} - username: root - key: ${{ secrets.DOCKER_SWARM_MANAGER_ONE_KEY }} - script: docker exec ${{ secrets.DOCKER_SWARM_MANAGER_ONE_NODE_16_ID}} sh -c 'yarn global add @oraichain/oraidex-server@latest --ignore-scripts' + token: ${{ secrets.GIT_PAT }} + repository: oraichain/infra + event-type: install-package + client-payload: '{"libname": "oraidex-server-staging", "node_version": "16"}' - name: send result via discord uses: appleboy/discord-action@master @@ -87,4 +87,4 @@ jobs: webhook_id: ${{ secrets.WEBHOOK_ID }} webhook_token: ${{ secrets.WEBHOOK_TOKEN }} username: "GitBot" - message: "Repo oraidex-sdk has just published oraidex-server. result: ${{ steps.publish.outcome }}. install result: ${{ steps.install.outcome }}" + message: "Repo oraidex-sdk has just published oraidex-server. result: ${{ steps.publish.outcome }}." diff --git a/.github/workflows/publish_staging_package.yml b/.github/workflows/publish_staging_package.yml index 051dff87..c1d81199 100644 --- a/.github/workflows/publish_staging_package.yml +++ b/.github/workflows/publish_staging_package.yml @@ -65,12 +65,12 @@ jobs: id: install if: steps.publish.outcome != 'failure' continue-on-error: true - uses: appleboy/ssh-action@master + uses: peter-evans/repository-dispatch@v2 with: - host: ${{ secrets.DOCKER_SWARM_MANAGER_ONE }} - username: root - key: ${{ secrets.DOCKER_SWARM_MANAGER_ONE_KEY }} - script: docker exec ${{ secrets.DOCKER_SWARM_MANAGER_ONE_NODE_16_ID}} sh -c 'yarn global add @oraichain/oraidex-server-staging@latest --ignore-scripts' + token: ${{ secrets.GIT_PAT }} + repository: oraichain/infra + event-type: install-package + client-payload: '{"libname": "oraidex-server-staging", "node_version": "16"}' - name: send result via discord uses: appleboy/discord-action@master @@ -78,4 +78,4 @@ jobs: webhook_id: ${{ secrets.WEBHOOK_ID }} webhook_token: ${{ secrets.WEBHOOK_TOKEN }} username: "GitBot [oraidex-server-staging]" - message: "Repo oraidex-sdk has just published oraidex-server-staging. result: ${{ steps.publish.outcome }}. install result: ${{ steps.install.outcome }}. ${{ github.event.head_commit.author.name }}" + message: "Repo oraidex-sdk has just published oraidex-server-staging. result: ${{ steps.publish.outcome }}. ${{ github.event.head_commit.author.name }}" From 203e41ce4856d1df12e7aaae1b61bc13ffcf4a16 Mon Sep 17 00:00:00 2001 From: phutx Date: Thu, 7 Dec 2023 16:01:24 +0700 Subject: [PATCH 2/3] update staging version same as staging branch --- packages/oraidex-server/package.staging.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/oraidex-server/package.staging.json b/packages/oraidex-server/package.staging.json index 2db91d05..9cafb7f1 100644 --- a/packages/oraidex-server/package.staging.json +++ b/packages/oraidex-server/package.staging.json @@ -1,6 +1,6 @@ { "name": "@oraichain/oraidex-server-staging", - "version": "1.0.42", + "version": "1.0.45", "main": "dist/index.js", "bin": "dist/index.js", "license": "MIT", From fb53aee94f4a7c8915d8e4a2ae07aaa719d8318b Mon Sep 17 00:00:00 2001 From: trungbach Date: Thu, 7 Dec 2023 16:18:17 +0700 Subject: [PATCH 3/3] chore: pumb oraidex-server 1.0.34 --- packages/oraidex-server/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/oraidex-server/package.json b/packages/oraidex-server/package.json index 0c82e3b3..22be9c28 100644 --- a/packages/oraidex-server/package.json +++ b/packages/oraidex-server/package.json @@ -1,6 +1,6 @@ { "name": "@oraichain/oraidex-server", - "version": "1.0.33", + "version": "1.0.34", "main": "dist/index.js", "bin": "dist/index.js", "license": "MIT",