Skip to content
Source
Sign inSign up
TanStack/cli

ci: verify release dependencies before publishing dependents #558

Opentannerlinsleywants to merge 3 commits intomain fromtaren/factory-dependency-ready-releaseopened

Showing 10 changed files with 128 additions and 6 deletions (loading 8).

x
0 of 10 viewed, 10 left
39 additions and 0 deletions.github/actions/publish-verified-package/action.ymlAdded
View file
@@ -0,0 +1,39 @@
+name: Publish and verify one stable package
+description: Publish one package once and wait for its verified public archive.
+inputs:
+ directory:
+ description: Release package workspace directory.
+ required: true
+ plan:
+ description: Version and dependency manifest from the checked-out release commit.
+ required: true
+runs:
+ using: composite
+ steps:
+ - name: Check registry and prior upload attempt
+ id: inspect
+ shell: bash
+ run: node scripts/release-publish-plan.mjs inspect
+ env:
+ GH_TOKEN: ${{ github.token }}
+ STABLE_RELEASE_PLAN: ${{ inputs.plan }}
+ RELEASE_PACKAGE_DIR: ${{ inputs.directory }}
+ - name: Persist upload attempt before publishing
+ if: steps.inspect.outputs.publish == 'true'
+ uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
+ with:
+ name: ${{ steps.inspect.outputs.marker }}
+ path: ${{ steps.inspect.outputs.receipt }}
+ if-no-files-found: error
+ - name: Publish exact package
+ if: steps.inspect.outputs.publish == 'true'
+ shell: bash