-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: add automate release
- Loading branch information
Showing
4 changed files
with
88 additions
and
42 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 |
---|---|---|
|
@@ -32,3 +32,4 @@ coverage | |
############################ | ||
# Other | ||
############################ | ||
.envrc |
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,5 +1,29 @@ | ||
language: node_js | ||
|
||
node_js: | ||
- "node" | ||
- "lts/*" | ||
after_success: npm run coveralls | ||
- lts/* | ||
- node | ||
|
||
after_success: npm run coverage | ||
|
||
stages: | ||
- Test | ||
- name: Release | ||
if: branch = master AND commit_message !~ /(release|no-release)/ | ||
|
||
jobs: | ||
include: | ||
- stage: Release | ||
node_js: lts/* | ||
install: npm install --no-package-lock | ||
before_deploy: | ||
- git config user.email ${GITHUB_EMAIL:-"travis@travis-ci.org"} | ||
- git config user.name ${GITHUB_USER:-"Travis CI"} | ||
- git remote set-url origin https://${GH_TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git | ||
- git checkout master | ||
deploy: | ||
skip_cleanup: true | ||
provider: script | ||
script: npm run release | ||
on: | ||
branch: master |
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