stop publishing to npm registry with @latest on canary releases

This commit is contained in:
Kenneth Bingham 2025-03-05 09:31:46 -05:00
parent 8822082b1b
commit d7e0faa468
No known key found for this signature in database
GPG Key ID: 31709281860130B6

View File

@ -88,6 +88,13 @@ jobs:
shell: bash
run: |
cd sdk/nodejs/sdk
npm publish --access public
# Check if this is the official repository
if [[ "${{ github.repository_owner }}" == "openziti" ]]; then
echo "Publishing from official repository with @latest tag"
npm publish --access public
else
echo "Publishing from fork/test repository with @canary tag"
npm publish --access public --tag canary
fi
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}