From 093c6f12677597379f7e48f5943fb49b071dd9e0 Mon Sep 17 00:00:00 2001 From: Ben Ilegbodu Date: Fri, 22 Jun 2018 12:05:30 -0700 Subject: [PATCH] chore(build): Run semantic release on latest node When running the build on Node 6, we only have NPM 3, which doesn't have `npx`. So by adding the deploy `on` filter to run `semantic-release` on the latest node version, we won't try to even run it on Node 6. BREAKING CHANGE: We need to trigger a version bump after taking over the package --- .travis.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 51a135b..39198a6 100644 --- a/.travis.yml +++ b/.travis.yml @@ -12,8 +12,10 @@ script: yarn run validate before_deploy: yarn run build # Using semantic-release, deploy a new version of the library -# We're running multiple node jobs so travis-deploy-once ensures -# that it only tries to deploy once. +# We're running multiple node jobs so running on latest Node +# version deploy: provider: script - script: npx travis-deploy-once "npx semantic-release" + script: npx semantic-release + on: + node: "node"