Skip to content

Commit 912c04a

Browse files
committed
Travis: add before_install script
1 parent 07e5905 commit 912c04a

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.travis.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
# create a new release if $CREATE_RELEASE is set
2222
- stage: Create Release
2323
if: env(CREATE_RELEASE) = true AND type = api AND tag IS blank
24-
os: osx
24+
os: linux
2525
node_js: 12
2626
git:
2727
depth: false # disable --depth
@@ -45,7 +45,7 @@ jobs:
4545
# publish npm package on tagged builds
4646
- stage: Publish Package
4747
if: tag IS present
48-
os: osx
48+
os: linux
4949
node_js: 12
5050
git:
5151
depth: false # disable --depth
@@ -83,6 +83,11 @@ jobs:
8383
on:
8484
branch: master
8585

86+
before_install:
87+
- '[[ "$CREATE_RELEASE" == "true" || "$TRAVIS_BRANCH" == "main" ]] && true || unset encrypted_05f822b6caa8_key'
88+
- '[[ "$CREATE_RELEASE" == "true" || "$TRAVIS_BRANCH" == "main" ]] && true || unset encrypted_05f822b6caa8_iv'
89+
- '[[ -z "$TRAVIS_TAG" ]] && unset NPM_API_TOKEN || true'
90+
8691
notifications:
8792
slack:
8893
secure: PuYBCkRXgUKxoFMyTZdYcxplpgW+T/hxq54gsFOcAxN079i7PTD/GmGIgKM1RviCocvroUst5bW3ULk3haYUb8gQSCyAeHzRl00DaoOXshTRjFzJyU6m5wbT/R45dh6ZO2BT6uwlVU95KznieCC+yjlbppPOis8bwxra08ODnsA1L7OeI7fVlKjyh+lPA4qnmuYpNtMfTO5mmHroHBS5nWoB1WctWuZQGSfDYLUr/XrhKkJOBbv7FI7setTroIRF4Rs9nIFEF3mzTuUK5VV6lQAZRzNHKmgD9DmGVeaB5Y4fWEznocV1d6cInsjMr4EyMYziyOFnnPZAk8GZapMDwD0/5E9L5+Q8uXhFhVHYurpZnP+wylqZmnfb4UaFcP96BBaavhfF/ai+LWlLbHiL5b1HX4dlauNfHdq1W1YCILI2Atfr+36rqu3102S6HHkOssoTw09ftLfQHuF6CNYnVE5cS40pupwFZj3o0h9yQnCFDPxlq2ls+hon+PKL9wCHL5MlG+jQZDDL8eZC8F9CoZUyVIxNhoh0fnZ+t4bIlGW5eB8f8oMCxcnjocxZpichfAsmuaPh/e2KfdoF/B7ce6+Tb3/YXqo5QVTsJ1Vzi4I7c3jx1Q0DAyZODsBKyE0y7NfmeVNap0WIgajiJBoKji8Fjw+tDfa3hSb4yyPSG6w=

0 commit comments

Comments
 (0)