Update Travis CI configuration (#2536)

* Fix NPM deploy stage

* Fix Travis CI configuration file according to errors

... as seen in

- https://travis-ci.com/simple-icons/simple-icons/builds/147690404/config
- https://travis-ci.com/simple-icons/simple-icons/jobs/284138938/config

Note that `skip_cleanup` is no longer necessary according to https://docs.travis-ci.com/user/deployment-v2#cleaning-up-the-git-working-directory
This commit is contained in:
Eric Cornelissen 2020-02-07 10:51:57 +02:00 committed by GitHub
parent 53218be661
commit f5708c980c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,3 +1,6 @@
os: linux
language: node_js
jobs: jobs:
include: include:
- stage: "Test" - stage: "Test"
@ -24,7 +27,7 @@ jobs:
- stage: deploy - stage: deploy
name: "Git tag" name: "Git tag"
language: minimal language: shell
if: branch = master if: branch = master
before_deploy: before_deploy:
@ -34,18 +37,17 @@ jobs:
- git tag $PACKAGE_VERSION - git tag $PACKAGE_VERSION
deploy: deploy:
provider: releases provider: releases
api_key: "$GITHUB_TOKEN" token: "$GITHUB_TOKEN"
skip_cleanup: true
- name: "NPM Package" - name: "NPM Package"
language: node_js language: node_js
node_js: 8 node_js: 8
if: branch = master if: branch = master
deploy: deploy:
edge: true
provider: npm provider: npm
skip_cleanup: true
email: "$NPM_EMAIL" email: "$NPM_EMAIL"
api_key: "$NPM_KEY" api_token: "$NPM_KEY"
on: on:
branch: master branch: master