-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(build): Add semantic-release in Travis (#33)
Updates `.travis.yml` to have a deploy step that calls `semantic-release` with `npx`. Also updated the `README` with a bunch of new content in anticipation of the library being released. Lastly did some misc updates to `CONTRIBUTING.md` & `PULL_REQUEST_TEMPLATE.md`
- Loading branch information
1 parent
fd25694
commit 0161a67
Showing
4 changed files
with
83 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,19 @@ | ||
language: node_js | ||
node_js: | ||
- "node" | ||
- "10" | ||
- "8" | ||
- "6" | ||
|
||
# Cache dependencies in $HOME/.yarn-cache across builds | ||
cache: yarn | ||
# Run the the validate script | ||
# Temporarily also run the build script to make sure it works | ||
# (will move this to the release step once that's implemented) | ||
script: yarn run validate --ci && yarn run build | ||
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. | ||
deploy: | ||
provider: script | ||
script: npx travis-deploy-once "npx semantic-release" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters