From a0d46e459aa334f5c8a16ff6b83f3eff637fc5a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Etienne=20B=C3=B6mcke?= Date: Wed, 31 May 2023 20:37:56 +0200 Subject: [PATCH] ci: configure automated deployment of the extension server on update --- .github/workflows/release.yml | 11 +++++++++++ .yarn/versions/91b21759.yml | 0 package.json | 2 +- 3 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 .yarn/versions/91b21759.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1079dd980..c6bc57a2e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -50,3 +50,14 @@ jobs: else yarn npm publish --access public fi + - name: Redeploy the extension server + run: | + CURRENT_VERSION=$(cat package.json | jq -r '.version') + curl -L \ + -X POST \ + -H "Accept: application/vnd.github+json" \ + -H "Authorization: Bearer ${{ secrets.EXTENSION_SERVER_DEPLOY_TOKEN }}"\ + -H "X-GitHub-Api-Version: 2022-11-28" \ + https://api.github.com/repos/awell-health/awell-extension-server/actions/workflows/update-dependency.yml/dispatches \ + -d '{"ref":"main","inputs":{"dependency":"@awell-health/awell-extensions","version":"'"$CURRENT_VERSION"'"}}' + \ No newline at end of file diff --git a/.yarn/versions/91b21759.yml b/.yarn/versions/91b21759.yml new file mode 100644 index 000000000..e69de29bb diff --git a/package.json b/package.json index 99fbac5fa..b046b1555 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@awell-health/awell-extensions", - "version": "1.0.6", + "version": "1.0.7", "packageManager": "yarn@3.4.1", "main": "dist/src/index.js", "repository": {