Skip to content

Commit 07d2ef5

Browse files
sylvainlgSylvain
authored andcommitted
feat: automated publish
1 parent e550aa2 commit 07d2ef5

File tree

4 files changed

+3503
-110
lines changed

4 files changed

+3503
-110
lines changed

.releaserc

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"plugins": [
3+
"@semantic-release/commit-analyzer",
4+
"@semantic-release/release-notes-generator",
5+
"@semantic-release/changelog",
6+
"@semantic-release/npm",
7+
["@semantic-release/git", {
8+
"assets": ["package.json", "CHANGELOG.md"],
9+
"message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
10+
}],
11+
"@semantic-release/github"
12+
]
13+
}

.travis.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
language: node_js
22
node_js:
3-
- '10'
43
- node # current node version (may be duplicate, but that's OK)
5-
script:
6-
- npm run prepublish # lint, clean, build (bundles), test (bundles)
4+
jobs:
5+
include:
6+
- stage: install
7+
script: yarn
8+
- stage: deploy
9+
script: npx semantic-release

package.json

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "feature-react-navigation",
33
"title": "Feature React Navigation",
4-
"version": "0.1.1",
4+
"version": "0.0.0-development",
55
"description": "Feature based navigation using react-navigation",
66
"main": "src/index.js",
77
"scripts": {
@@ -19,12 +19,14 @@
1919
"pkgReview": "echo '*** Showing outdated installed packages:' && yarn outdated --long || true",
2020
"prepublish": "npx yarn-run-all lint pkgReview clean build:plat:all test cov",
2121
"lint": "echo '*** Verify code quality (lint):' && eslint src",
22-
"test": "jest src"
22+
"test": "jest src",
23+
"commit": "yarn run git-cz",
24+
"semantic-release": "semantic-release"
2325
},
2426
"repository": {
2527
"type": "git",
26-
"url": "git+https://github.com/sylvainlg/feature-reat-navigation.git",
27-
"baseUrl": "https://github.com/sylvainlg/feature-reat-navigation"
28+
"url": "https://github.com/sylvainlg/feature-react-navigation.git",
29+
"baseUrl": "https://github.com/sylvainlg/feature-react-navigation"
2830
},
2931
"keywords": [
3032
"react",
@@ -59,6 +61,7 @@
5961
"react": ">=16.9.0"
6062
},
6163
"dependencies": {
64+
"@commitlint/prompt": "^11.0.0",
6265
"lodash.has": "^4.5.2",
6366
"react-is": "^16.12.0"
6467
},
@@ -69,7 +72,11 @@
6972
"@babel/preset-env": "^7.7.7",
7073
"@babel/preset-react": "^7.7.4",
7174
"@babel/runtime": "^7.7.7",
75+
"@commitlint/cli": "^11.0.0",
76+
"@commitlint/config-conventional": "^11.0.0",
7277
"@react-navigation/core": "^3.5.1",
78+
"@semantic-release/changelog": "^5.0.1",
79+
"@semantic-release/git": "^9.0.0",
7380
"babel-jest": "^26.5.2",
7481
"babel-plugin-transform-default-import": "^1.0.0",
7582
"babel-plugin-transform-es2015-modules-commonjs": "^6.26.2",
@@ -79,9 +86,11 @@
7986
"eslint": "^7.11.0",
8087
"eslint-plugin-react": "^7.17.0",
8188
"feature-u": "^3.0.0",
89+
"husky": "^4.3.0",
8290
"jest": "^26.5.3",
8391
"react": "^16.9.0",
8492
"rimraf": "^3.0.0",
93+
"semantic-release": "^17.2.1",
8594
"webpack": "^5.1.3",
8695
"webpack-cli": "^4.0.0",
8796
"yarn-run-all": "^3.1.1"

0 commit comments

Comments
 (0)