mirror of
https://github.com/openziti/zrok.git
synced 2025-06-24 19:51:32 +02:00
stop publishing to npm registry with @latest on canary releases
This commit is contained in:
parent
8822082b1b
commit
d7e0faa468
9
.github/workflows/node-sdk.yml
vendored
9
.github/workflows/node-sdk.yml
vendored
@ -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 }}
|
||||
|
Loading…
x
Reference in New Issue
Block a user