File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -240,7 +240,7 @@ spec:
240
240
name : setup-builder-home
241
241
resources : {}
242
242
- args :
243
- - sh deploy.sh
243
+ - sh deploy.sh $PULL_BASE_REF
244
244
command :
245
245
- /bin/sh
246
246
- -c
Original file line number Diff line number Diff line change 7
7
npm run package
8
8
filename=" $( npm pack --dry-run | tail -n 1) "
9
9
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
10
18
11
19
echo " $filename package pushed to NPM successfully"
You can’t perform that action at this time.
0 commit comments