Skip to content

Commit 6077cd5

Browse files
authored
Merge pull request #34 from Azure-Samples/fix-travis3
Fix travis3
2 parents f4e169d + 76edeac commit 6077cd5

File tree

3 files changed

+17
-3
lines changed

3 files changed

+17
-3
lines changed

.travis.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ node_js:
66
install:
77
- npm install
88
deploy:
9+
- provider: script
10+
script: env | sort
911
- provider: script
1012
skip_cleanup: true
1113
script: sh .travis/pu.sh

.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)