chore: setup semantic release

This commit is contained in:
Gleb Bahmutov 2017-12-11 21:56:47 -05:00
parent 62570e1081
commit fab89b9bac
2 changed files with 23 additions and 4 deletions

15
.travis-ci.yml Normal file
View file

@ -0,0 +1,15 @@
language: node_js
notifications:
email: true
node_js:
- 9
# Retry install on fail to avoid failing a build on network/disk/external errors
install:
- travis_retry npm install
script:
- npm run test
after_success:
- npm run semantic-release

View file

@ -1,7 +1,7 @@
{ {
"name": "@cypress/snapshot", "name": "@cypress/snapshot",
"description": "Adds value / object / DOM element snapshot testing support to Cypress test runner", "description": "Adds value / object / DOM element snapshot testing support to Cypress test runner",
"version": "1.0.0", "version": "0.0.0-development",
"author": "Gleb Bahmutov <gleb@cypress.io>", "author": "Gleb Bahmutov <gleb@cypress.io>",
"bugs": "https://github.com/cypress-io/snapshot/issues", "bugs": "https://github.com/cypress-io/snapshot/issues",
"config": { "config": {
@ -63,10 +63,12 @@
"test": "npm run unit", "test": "npm run unit",
"unit": "mocha src/*-spec.js", "unit": "mocha src/*-spec.js",
"unused-deps": "dependency-check --unused --no-dev . --entry src/add-initial-snapshot-file.js", "unused-deps": "dependency-check --unused --no-dev . --entry src/add-initial-snapshot-file.js",
"postinstall": "node src/add-initial-snapshot-file.js" "postinstall": "node src/add-initial-snapshot-file.js",
"semantic-release": "semantic-release pre && npm publish && semantic-release post"
}, },
"release": { "release": {
"analyzeCommits": "simple-commit-message" "analyzeCommits": "simple-commit-message",
"generateNotes": "github-post-release"
}, },
"devDependencies": { "devDependencies": {
"ban-sensitive-files": "1.9.2", "ban-sensitive-files": "1.9.2",
@ -76,10 +78,12 @@
"eslint": "4.13.0", "eslint": "4.13.0",
"eslint-plugin-cypress-dev": "1.1.2", "eslint-plugin-cypress-dev": "1.1.2",
"git-issues": "1.3.1", "git-issues": "1.3.1",
"github-post-release": "1.13.1",
"license-checker": "15.0.0", "license-checker": "15.0.0",
"mocha": "4.0.1", "mocha": "4.0.1",
"nsp": "3.1.0", "nsp": "3.1.0",
"pre-git": "3.16.0" "pre-git": "3.16.0",
"semantic-release": "^8.2.0"
}, },
"dependencies": { "dependencies": {
"@wildpeaks/snapshot-dom": "1.2.1", "@wildpeaks/snapshot-dom": "1.2.1",