Skip to content

Commit

Permalink
Move build to before_deploy phase
Browse files Browse the repository at this point in the history
  • Loading branch information
benmvp committed May 17, 2018
1 parent a9fc054 commit 75315fd
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ node_js:
# Run the the validate script
script: yarn run validate

# We of course run a build first to generate the build targets
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 of course run a build first
# to release the build targets
# that it only tries to deploy once.
deploy:
provider: script
skip_cleanup: true
script:
- yarn run build
- npx travis-deploy-once "npx semantic-release"
script: npx travis-deploy-once "npx semantic-release"

0 comments on commit 75315fd

Please sign in to comment.