mirror of
https://github.com/datashard/snapshot.git
synced 2024-11-21 21:52:28 +00:00
chore: setup semantic release
This commit is contained in:
parent
62570e1081
commit
fab89b9bac
2 changed files with 23 additions and 4 deletions
15
.travis-ci.yml
Normal file
15
.travis-ci.yml
Normal 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
|
12
package.json
12
package.json
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"name": "@cypress/snapshot",
|
||||
"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>",
|
||||
"bugs": "https://github.com/cypress-io/snapshot/issues",
|
||||
"config": {
|
||||
|
@ -63,10 +63,12 @@
|
|||
"test": "npm run unit",
|
||||
"unit": "mocha src/*-spec.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": {
|
||||
"analyzeCommits": "simple-commit-message"
|
||||
"analyzeCommits": "simple-commit-message",
|
||||
"generateNotes": "github-post-release"
|
||||
},
|
||||
"devDependencies": {
|
||||
"ban-sensitive-files": "1.9.2",
|
||||
|
@ -76,10 +78,12 @@
|
|||
"eslint": "4.13.0",
|
||||
"eslint-plugin-cypress-dev": "1.1.2",
|
||||
"git-issues": "1.3.1",
|
||||
"github-post-release": "1.13.1",
|
||||
"license-checker": "15.0.0",
|
||||
"mocha": "4.0.1",
|
||||
"nsp": "3.1.0",
|
||||
"pre-git": "3.16.0"
|
||||
"pre-git": "3.16.0",
|
||||
"semantic-release": "^8.2.0"
|
||||
},
|
||||
"dependencies": {
|
||||
"@wildpeaks/snapshot-dom": "1.2.1",
|
||||
|
|
Loading…
Reference in a new issue