From 353713d867a8a97ba8536ea25396049f84153944 Mon Sep 17 00:00:00 2001 From: JoshuaVSherman Date: Wed, 3 Jun 2026 01:48:50 -0400 Subject: [PATCH] ci: add redeploy-on-jammusic workflow (Task 195b receiver) Listens for a repository_dispatch (jammusic-main-deploy) from JaMmusic and triggers a Heroku build of current main via the Platform API, so the embedded JaMmusic build (postinstallJaM) is refreshed. Also runnable manually via workflow_dispatch. Requires a HEROKU_API_KEY repo secret. Part of JaMmusic#1071 (Heroku frontend auto-redeploy fan-out). Co-Authored-By: Claude Opus 4.8 --- .github/workflows/redeploy-on-jammusic.yml | 23 ++++++++++++++++++++++ package-lock.json | 4 ++-- package.json | 2 +- 3 files changed, 26 insertions(+), 3 deletions(-) create mode 100644 .github/workflows/redeploy-on-jammusic.yml diff --git a/.github/workflows/redeploy-on-jammusic.yml b/.github/workflows/redeploy-on-jammusic.yml new file mode 100644 index 0000000..d4b7fe0 --- /dev/null +++ b/.github/workflows/redeploy-on-jammusic.yml @@ -0,0 +1,23 @@ +name: Redeploy on JaMmusic main update + +# Fired by a repository_dispatch from JaMmusic when it merges to main, so the +# embedded JaMmusic build (via postinstallJaM) is refreshed. Also runnable by +# hand from the Actions tab (workflow_dispatch). +on: + repository_dispatch: + types: [jammusic-main-deploy] + workflow_dispatch: {} + +jobs: + redeploy: + runs-on: ubuntu-latest + steps: + - name: Trigger Heroku build of current main + env: + HEROKU_API_KEY: ${{ secrets.HEROKU_API_KEY }} + run: | + curl -fsS -X POST https://api.heroku.com/apps/webjamsocket/builds \ + -H "Content-Type: application/json" \ + -H "Accept: application/vnd.heroku+json; version=3" \ + -H "Authorization: Bearer $HEROKU_API_KEY" \ + -d '{"source_blob":{"url":"https://github.com/WebJamApps/WebJamSocketCluster/tarball/main","version":"main"}}' diff --git a/package-lock.json b/package-lock.json index ed36f18..dfea157 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "webjamsocketserver", - "version": "3.0.1", + "version": "3.0.2", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "webjamsocketserver", - "version": "3.0.1", + "version": "3.0.2", "hasInstallScript": true, "license": "MIT", "dependencies": { diff --git a/package.json b/package.json index 2da798e..4e19d5b 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "webjamsocketserver", "description": "Uses latest version of socketcluster-server", - "version": "3.0.1", + "version": "3.0.2", "license": "MIT", "type": "module", "main": "build/src/index.js",