-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: adds standard release and linting libraries for automated release
Adds standard-version and CI scripts to automatically release upon merge to master. Updates scripts to fix update package.json bug.
- Loading branch information
Showing
11 changed files
with
2,877 additions
and
2,082 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 |
---|---|---|
|
@@ -4,18 +4,31 @@ language: node_js | |
|
||
os: | ||
- linux | ||
# - osx | ||
- osx | ||
|
||
node_js: | ||
- $NODE_VERSION | ||
|
||
before_install: | ||
- git remote rm origin | ||
- git remote add origin "https://symbology:[email protected]/jshor/symbology.git" | ||
|
||
install: | ||
- yarn | ||
|
||
script: | ||
- if [[ $TRAVIS_BRANCH == "master" && $TRAVIS_COMMIT_MESSAGE != *"chore(release)"* ]]; then | ||
yarn release; | ||
node ./scripts/updatePkg.js; | ||
fi | ||
- yarn package:binary | ||
- yarn test:coverage | ||
- yarn package-binary | ||
- yarn publish-binary | ||
- yarn publish:binary | ||
- if [[ $TRAVIS_BRANCH == "master" && $TRAVIS_COMMIT_MESSAGE != *"chore(release)"* ]]; then | ||
if [[ $TRAVIS_COMMIT_MESSAGE != *"chore(release)"* ]]; then | ||
yarn publish:release; | ||
fi | ||
fi | ||
|
||
after_success: | ||
- cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js | ||
|
@@ -24,6 +37,9 @@ env: | |
matrix: | ||
# - NODE_VERSION="9" | ||
- NODE_VERSION="10" | ||
# - NODE_VERSION="11" | ||
# - NODE_VERSION="12" | ||
# - NODE_VERSION="13" | ||
- NODE_VERSION="11" | ||
- NODE_VERSION="12" | ||
- NODE_VERSION="13" | ||
|
||
global: | ||
secure: aVq1cD7QjvlWFnliM4kWAPc+9Fnc9vVDVSX37e4Ojnbx9m+fcLcIM9HsDUJei+vJecF0812Hcb7lKoIkCz2daqZu8QycAmxeZYdcX2SQ1O2z39pSWa4eNiy8FcfuhVlV9VDWqcxOAO3+AHvFbt34shfD7oJAZW7laVrVrowZDEznqBzxCfROwqzpPdwjVkWzdepbV+xxZNXHdlBCTqNZYeivnM4+P7RYoNsZKjZPan0NgNNH+jhGebjMGYj8KNWidsNLRCaHpRWIJqzHD0+cWNiS/4Q4Ta2VpFOLzL0Ih6Q4P/q8+4fwH4QrN3QHRMfUOjIl+ctOr99y3xrW5qvNjgv4WAzgI1an+iCAUSuaewDX/a18mtyb7SbUqmO8nXqoQVTdvRiFtxFPi4SA5MwSeG4JPsr3444LIlKaQDSCnFtpiOy5Q6u0JQQNnopZDGTRqceqWKNySHw1tLVSQivJ7WbA7avms51x7psxZ16XJ0GN3sj3HExdZUKWENuX0ijFCY28GG9hPxEpZJhAag8eaz0l2sT5lb5/Crx6oaMmzi+OW7gQeg4qfihNF/zWN/d3xGAvJKzq4JWS4RF17Npi6ctgBPv+VCTxdYozJGLnz80Rrgabqya21AeFrnSn9INHkIZGDN5BRiZB4LXvAekhmbTdU4T5LwtI3Wvd7XrwvzA= |
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"releaseCommitMessageFormat": "chore(release): {{currentTag}} [ci skip]" | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,42 @@ | ||
image: Visual Studio 2017 | ||
|
||
install: | ||
- git config --global credential.helper store | ||
- ps: Add-Content "$HOME\.git-credentials" "https://$($env:access_token):[email protected]`n" | ||
- git config --global user.email "Josh Shor" | ||
- git config --global user.name "[email protected]" | ||
- ps: Install-Product node $env:NODE_VERSION $env:platform | ||
- yarn global add windows-build-tools | ||
- yarn | ||
- yarn test | ||
- yarn package-binary | ||
# - yarn publish-binary | ||
|
||
test_script: | ||
# Output useful info for debugging. | ||
- node --version | ||
- npm --version | ||
# run tests | ||
- yarn test | ||
|
||
platform: | ||
# - x86 | ||
build_script: | ||
- ps: >- | ||
if ($env:APPVEYOR_REPO_BRANCH -eq 'master' -and !($env:APPVEYOR_REPO_COMMIT_MESSAGE.Contains("chore(release)"))) { | ||
yarn release | ||
} | ||
- yarn package:binary | ||
|
||
on_success: | ||
- ps: >- | ||
if ($env:APPVEYOR_REPO_BRANCH -eq 'master') { | ||
$ErrorActionPreference = "SilentlyContinue" | ||
yarn publish:binary | ||
} | ||
platform: | ||
- x86 | ||
- x64 | ||
|
||
environment: | ||
matrix: | ||
# - NODE_VERSION: '9' | ||
- NODE_VERSION: '10' | ||
# - NODE_VERSION: '11' | ||
# - NODE_VERSION: '12' | ||
# - NODE_VERSION: '13' | ||
- NODE_VERSION: '11' | ||
- NODE_VERSION: '12' | ||
- NODE_VERSION: '13' | ||
|
||
access_token: | ||
secure: 9Fo9YJd8087d6fYC63Jt2Ozl1xfbPiIlAvnDC022cG56Tu0tIPBVrcCL5PoYQkey |
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
module.exports = {extends: ['@commitlint/config-conventional']} |
Oops, something went wrong.