Skip to content
This repository has been archived by the owner on Jul 22, 2020. It is now read-only.

Commit

Permalink
feat: enable semantic-release
Browse files Browse the repository at this point in the history
  • Loading branch information
mvines committed Feb 17, 2019
1 parent d99c697 commit e9b7880
Show file tree
Hide file tree
Showing 6 changed files with 2,137 additions and 72 deletions.
11 changes: 11 additions & 0 deletions .sgcrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"scope": true,
"body": true,
"emoji": false,
"lowercaseTypes": true,
"rules": {
"maxChar": 72,
"minChar": 10,
"endWithDot": false
}
}
10 changes: 9 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ node_js:
- "node"

services:
- docker
- redis-server

cache:
Expand All @@ -18,3 +17,12 @@ notifications:
script:
- yarn
- yarn lint

deploy:
- provider: script
skip_cleanup: true
script:
- npx semantic-release
on:
branch: master
node_js: "node"
14 changes: 14 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@

✨ Thanks for contributing to the **Solana Block Explorer**! ✨

As a contributor, here are the guidelines we would like you to follow:
* Ensure `yarn lint` passes before submitting a Pull Request
* Commits follow the [Angular commit convention](https://github.com/angular/angular.js/blob/master/DEVELOPERS.md#-git-commit-guidelines)

We use [semantic-release](https://github.com/semantic-release/semantic-release)
to release new versions automatically from the `master` branch:
* Commits of type `fix` will trigger bugfix releases, think `0.0.1`
* Commits of type `feat` will trigger feature releases, think `0.1.0`
* Commits with `BREAKING CHANGE` in body or footer will trigger breaking releases, think `1.0.0`

All other commit types will trigger no new release.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
[![Build status][travis-image]][travis-url]
[![npm][npm-image]][npm-url]
[![npm-downloads][npm-downloads-image]][npm-url]
[![semantic-release][semantic-release-image]][semantic-release-url]

[travis-image]: https://api.travis-ci.org/solana-labs/blockexplorer.svg?branch=master
[travis-url]: https://travis-ci.org/solana-labs/blockexplorer
[npm-image]: https://img.shields.io/npm/v/@solana/blockexplorer.svg?style=flat
[npm-downloads-image]: https://img.shields.io/npm/dm/@solana/blockexplorer.svg?style=flat
[npm-url]: https://www.npmjs.com/package/@solana/blockexplorer
[semantic-release-image]: https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg
[semantic-release-url]: https://github.com/semantic-release/semantic-release

# Solana Block Explorer
## Prerequisites
Expand Down
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@solana/blockexplorer",
"version": "0.0.3",
"version": "0.0.0-development",
"license": "MIT",
"author": "Solana Labs, Inc",
"homepage": "https://solana.com/",
Expand Down Expand Up @@ -43,6 +43,7 @@
"react-dom": "^16.7.0",
"react-scripts": "2.1.5",
"robust-websocket": "^1.0.0",
"semantic-release": "^15.13.3",
"watch": "^1.0.2"
},
"bin": {
Expand All @@ -57,6 +58,7 @@
"lint:watch": "watch 'npm run lint:fix' . --wait=1",
"prepack": "set -ex; npm run lint; npm run build",
"pretty": "prettier --write '{,{api,src}/**/}*.js'",
"re": "semantic-release --repository-url [email protected]:solana-labs/blockexplorer.git",
"start:api": "set -ex; redis-cli ping; babel-node --presets env api/api.js",
"start:ui": "react-scripts start",
"test:ui": "react-scripts test"
Expand Down
Loading

0 comments on commit e9b7880

Please sign in to comment.