Skip to content

Commit 6b05e1e

Browse files
Merge pull request #20 from scheduleonce/ultragroot/ONCEHUB-52065
https://scheduleonce.atlassian.net/browse/ONCEHUB-53279
2 parents dce05cf + 33ece63 commit 6b05e1e

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

.lighthouse/jenkins-x/release.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ spec:
240240
name: setup-builder-home
241241
resources: {}
242242
- args:
243-
- sh deploy.sh
243+
- sh deploy.sh $PULL_BASE_REF
244244
command:
245245
- /bin/sh
246246
- -c

deploy.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,13 @@ npm i
77
npm run package
88
filename="$(npm pack --dry-run | tail -n 1)"
99
npm publish $filename --registry=https://registry.npmjs.org/
10+
echo "$1"
11+
12+
if [[ "$1" == "qa" ]] || [[ "$1" == "master" ]] || [[ "$1" == "staging" ]] || [[ "$1" == "staging-app2" ]]
13+
then
14+
npm publish $filename --registry=https://registry.npmjs.org/
15+
else
16+
npm publish --tag beta $filename --registry=https://registry.npmjs.org/
17+
fi
1018

1119
echo "$filename package pushed to NPM successfully"

0 commit comments

Comments
 (0)