mirror of
https://github.com/openziti/zrok.git
synced 2025-06-25 04:02:15 +02:00
stop publishing to npm registry with @latest on canary releases
This commit is contained in:
parent
8822082b1b
commit
d7e0faa468
7
.github/workflows/node-sdk.yml
vendored
7
.github/workflows/node-sdk.yml
vendored
@ -88,6 +88,13 @@ jobs:
|
|||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
cd sdk/nodejs/sdk
|
cd sdk/nodejs/sdk
|
||||||
|
# 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
|
npm publish --access public
|
||||||
|
else
|
||||||
|
echo "Publishing from fork/test repository with @canary tag"
|
||||||
|
npm publish --access public --tag canary
|
||||||
|
fi
|
||||||
env:
|
env:
|
||||||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user