Skip to content

Commit e7e9e62

Browse files
authored
ci: use semantic release (#27)
* ci: attempt semantic release * ci: install newest version of yarn * chore(package): remove version from package.json * ci: install semantic-release in build-stage
1 parent 2306f85 commit e7e9e62

File tree

4 files changed

+297
-82
lines changed

4 files changed

+297
-82
lines changed

.travis.yml

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,24 @@ node_js:
44
- node
55
- 6
66
- 4
7-
before_install: yarn global add greenkeeper-lockfile@1
7+
before_install:
8+
- curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version 1.3.2
9+
- export PATH="$HOME/.yarn/bin:$PATH"
10+
- yarn global add greenkeeper-lockfile@1
811
before_script: greenkeeper-lockfile-update
12+
script:
13+
- yarn commitlint --from="$TRAVIS_BRANCH" --to="$TRAVIS_COMMIT"
14+
- yarn commitlint --from=$TRAVIS_COMMIT
15+
- yarn test
916
after_script: greenkeeper-lockfile-upload
17+
jobs:
18+
include:
19+
- stage: release
20+
node_js: 8
21+
os: linux
22+
after_success:
23+
- yarn add -D [email protected]
24+
- yarn semantic-release
1025
cache:
1126
yarn: true
1227
branches:
@@ -15,4 +30,6 @@ branches:
1530
- "/^greenkeeper/.*$/"
1631
env:
1732
global:
18-
secure: HN9UwIwZ0NIOgGaRHssKraQy5L4q0Jagtq4nsw75vUHmrc2tNYCpqREtIr7DlapurtVpXsOd5G8FiVMN6YWQA1WVuvoTD7AqJOXYF72gtSnIJ+mER6a4fFQe+2cPMu8l6/jYAFDzQ/ZJqd7QM8DZu6siYAmiJqmq1OmUSP3aohn/bCwyKcvD8MybNQvYvB9j1YzcypbE1LFUeV0oQX8rt9F+5PgY0vB/JE+X806sepgdv8LiVAfy2D/4IhHE55QtC1dfKsCl7Sn1nVriD16Z+OwsabQnp61wptOxaOsHM41eaXd1YlRyqYM1czNoFqgPMyo8uycSO/c7zl5cxWadZmvl21aZXHkb2HTH/XKP6BaZAa7DHwt1S2M8tP9YLDwhO24kSbxRA53Eiqnx+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IndxnnVHexc9aLuJKooC9azBU7jyQXIEKiGxlvo6Y2BOmsWLDZl41KIwfjWRoyCV1Of6Bf2RFyZg1Yut2RGtjYHTD6P4jRKwBNEpE9MyBJLQYmJw0KEwYQiY4Jt3fZtouSgyZS2jBeiBQEyS9mShbISdtjqUN021H/zpdfqvD0UUAehu/PhztiD2x0d23GkcLASMeBUlnrf9Vy5JmRFmrFgw9i4BDg6i1pDooV6xXShV5VoMmtPmSAuCkDvrGI8ETFqUB9799mHmyd1qcjHNWN+xojKfDVE+5G0AnyHWzHwI7PixDhWdNREKhuk8un5ACG+r3EZKyLkfN43RLoid+OHIaZk8Gfo+12Z4b9Z2v5ixjOvD/K8CIC3EKxee4iYRE4QTfeHf5NMoC5lfzOFVfcb84w5I12RK8dHiLRtQa5x6R665w5wGtQQWpRhaXMb4qOcA4jD3WE/g+ugnYJU18uDS6Awlg3MKKhRo+l+T7neusAZTLlqlAp0Y4rvZ9BlJRjIyeIxgC9yTI4Gz+daiskVtNuNh9yAv38MA3q1HP3rfRU1T21SmLBNMRe9uaDARk5jPDjUDQEYfMoGVt78xn+atwz1YdKTG1oA=

CHANGELOG.md

Lines changed: 0 additions & 56 deletions
This file was deleted.

package.json

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "eslint-plugin-jest",
3-
"version": "21.4.0",
3+
"version": "0.0.0-development",
44
"description": "Eslint rules for Jest",
55
"repository": "jest-community/eslint-plugin-jest",
66
"license": "MIT",
@@ -17,9 +17,12 @@
1717
"scripts": {
1818
"lint": "eslint . --ignore-pattern '!.eslintrc.js'",
1919
"test": "jest",
20-
"precommit": "lint-staged"
20+
"precommit": "lint-staged",
21+
"commitmsg": "commitlint -e $GIT_PARAMS"
2122
},
2223
"devDependencies": {
24+
"@commitlint/cli": "^5.2.0",
25+
"@commitlint/config-conventional": "^5.1.3",
2326
"eslint": "^4.10.0",
2427
"eslint-config-prettier": "^2.7.0",
2528
"eslint-plugin-prettier": "^2.3.1",
@@ -38,5 +41,8 @@
3841
},
3942
"jest": {
4043
"testEnvironment": "node"
44+
},
45+
"commitlint": {
46+
"extends": ["@commitlint/config-conventional"]
4147
}
4248
}

0 commit comments

Comments
 (0)