fix(publish): robust error handling, republish mode, separate tag/branch push

- Fix 404 error handling: no longer incorrectly marks failed publishes as 'already published'
- Add REPUBLISH mode: allows re-publishing missing platform packages without version check
- Separate tag and branch push: tag push (critical) succeeds even if branch push fails
- Fix changelog for beta releases: compares against previous beta tag instead of latest stable
- Add checkPackageVersionExists for accurate E403 error handling
This commit is contained in:
justsisyphus
2026-01-22 10:40:39 +09:00
parent c70ca39661
commit 3bea6a043d
2 changed files with 90 additions and 14 deletions

View File

@@ -22,6 +22,11 @@ on:
required: false
type: boolean
default: false
republish:
description: "Re-publish mode: skip version check, only publish missing packages"
required: false
type: boolean
default: false
concurrency: ${{ github.workflow }}-${{ github.ref }}
@@ -144,6 +149,7 @@ jobs:
BUMP: ${{ inputs.bump }}
VERSION: ${{ inputs.version }}
SKIP_PLATFORM_PACKAGES: ${{ inputs.skip_platform }}
REPUBLISH: ${{ inputs.republish }}
CI: true
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_CONFIG_PROVENANCE: true