Skip to content

Commit

Permalink
ci: configure automated deployment of the extension server on update
Browse files Browse the repository at this point in the history
  • Loading branch information
ebomcke-awell committed May 31, 2023
1 parent dd1dfe3 commit a0d46e4
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
11 changes: 11 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"'"}}'
Empty file added .yarn/versions/91b21759.yml
Empty file.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@awell-health/awell-extensions",
"version": "1.0.6",
"version": "1.0.7",
"packageManager": "[email protected]",
"main": "dist/src/index.js",
"repository": {
Expand Down

0 comments on commit a0d46e4

Please sign in to comment.