remove the workflow_dispatch check (#8563)
This commit is contained in:
@@ -130,19 +130,10 @@ jobs:
|
|||||||
echo "- $name@$version"
|
echo "- $name@$version"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
echo ""
|
|
||||||
if [ "${{ github.event_name }}" = "workflow_dispatch" ]; then
|
|
||||||
echo "### ⚠️ Dry run — packages were built but will NOT be published"
|
|
||||||
echo "Publishing only happens via release.yml (workflow_call)."
|
|
||||||
fi
|
|
||||||
} >> "$GITHUB_STEP_SUMMARY"
|
} >> "$GITHUB_STEP_SUMMARY"
|
||||||
|
|
||||||
# Publish to npm (only via workflow_call from release.yml)
|
|
||||||
# workflow_dispatch is build-only because npm trusted publishing OIDC claims
|
|
||||||
# are bound to the caller workflow filename (release.yml), not this file.
|
|
||||||
publish:
|
publish:
|
||||||
name: Publish to npm
|
name: Publish to npm
|
||||||
if: github.event_name != 'workflow_dispatch'
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: [build]
|
needs: [build]
|
||||||
environment: npm-production-publishing
|
environment: npm-production-publishing
|
||||||
|
|||||||
Reference in New Issue
Block a user