From 972b73fe13ff9856ab2f44d13326b89521666216 Mon Sep 17 00:00:00 2001 From: Olivier Biot Date: Sun, 10 May 2026 18:32:03 +0800 Subject: [PATCH] chore(ci): teach publish.yml to publish @melonjs/capacitor-plugin MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Adds `capacitor-plugin` to: - the workflow_dispatch `package` choice list - the `Set package directory` case statement, mapped to `packages/capacitor-plugin` with the `pnpm clean && pnpm build` command (same shape as the other plugins). No other change to the publish flow — `npm publish --access=public --provenance` works identically for the new scoped package, the only prerequisite is that npmjs.com has the trusted-publisher config in place for `@melonjs/capacitor-plugin` (or that the @melonjs scope config covers it). If the first publish fails on missing trust config, set up a "pending publisher" entry on npmjs and re-run. Co-Authored-By: Claude Opus 4.7 (1M context) --- .github/workflows/publish.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 0f90a8d03..2aa0db36b 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -12,6 +12,7 @@ on: - debug-plugin - tiled-inflate-plugin - spine-plugin + - capacitor-plugin - create-melonjs dry-run: description: "Dry run (skip actual publish)" @@ -65,6 +66,9 @@ jobs: elif [ "${{ inputs.package }}" = "spine-plugin" ]; then echo "dir=packages/spine-plugin" >> "$GITHUB_OUTPUT" echo "build_cmd=pnpm clean && pnpm build" >> "$GITHUB_OUTPUT" + elif [ "${{ inputs.package }}" = "capacitor-plugin" ]; then + echo "dir=packages/capacitor-plugin" >> "$GITHUB_OUTPUT" + echo "build_cmd=pnpm clean && pnpm build" >> "$GITHUB_OUTPUT" elif [ "${{ inputs.package }}" = "create-melonjs" ]; then echo "dir=packages/create-melonjs" >> "$GITHUB_OUTPUT" echo "build_cmd=echo 'No build step needed'" >> "$GITHUB_OUTPUT"