Skip to content

Commit

Permalink
chore(build): Run semantic release on latest node (#37)
Browse files Browse the repository at this point in the history
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. Because #33 was just a `chore()`, `semantic-release` assumed there was nothing to release.
  • Loading branch information
benmvp authored and BenAtEventbrite committed Jun 22, 2018
1 parent 0161a67 commit f315aef
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"

0 comments on commit f315aef

Please sign in to comment.