Skip to content

Commit df1f666

Browse files
committed
fixing build when push vs pr
1 parent ea2f8df commit df1f666

File tree

3 files changed

+17
-5
lines changed

3 files changed

+17
-5
lines changed

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@ install:
77
- npm install
88
deploy:
99
- provider: script
10-
script: sh echo "### this is the env "; env | sort
10+
script: env | sort
1111
- provider: script
1212
skip_cleanup: true
1313
script: sh .travis/pu.sh
1414
on:
1515
tags: false
1616
node: 8
17-
repo: Azure-Samples/react-aad-msal
17+
repo: Azure-Samples/react-aad-msal"
1818
# - provider: npm
1919
2020
# api_key:

.travis/pu.sh

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,21 @@ upload_files() {
3939
# This pushes the new tag
4040
git push --tags --dry-run
4141
}
42+
43+
check_release() {
44+
if [ "${TRAVIS_PULL_REQUEST}" != "false" ]; then
45+
echo "this IS a PR to deploy"
46+
echo "script will continue..."
47+
else
48+
echo "this is NOT a PR"
49+
exit(0)
50+
fi
51+
}
52+
4253
echo "####### the env is..."
43-
env
54+
env | sort | grep TRAVIS
4455
echo "####### end env"
56+
check_release
4557
setup_git
4658
make_version
47-
upload_files
59+
upload_files

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-aad-msal",
3-
"version": "0.3.13",
3+
"version": "0.3.15",
44
"description": "A react component that integrates with Azure AD (v2, MSAL).",
55
"private": false,
66
"license": "MIT",

0 commit comments

Comments
 (0)