Skip to content

Commit b16ef7a

Browse files
vonovakSConaway
authored andcommitted
chore: add semantic-relase [wild try] (react-native-datetimepicker#229)
1 parent cf89a08 commit b16ef7a

File tree

4 files changed

+3075
-73
lines changed

4 files changed

+3075
-73
lines changed

.circleci/config.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,20 @@ jobs:
8686
name: test detox
8787
- store_artifacts:
8888
path: ./artifacts
89+
publish:
90+
executor: rn/linux_js
91+
steps:
92+
- attach_workspace:
93+
at: .
94+
# - rn/yarn_install
95+
# fails with Error untarring cache: Error extracting tarball /var/folders/bq/mjrgbpkx5h1g_b22fpv0tlzc0000gn/T/cache376822577 : tmp/yarn/: Cannot extract through symlink tmp/yarn tmp/yarn/v6/: Cannot extract through symlink tmp/yarn/v6 tmp/yarn/v6/.tmp/: Cannot extract through symlink tmp/yarn/v6/.tmp tmp/yarn/v6/npm-@babel-code-frame-7.8.3-33e25903d7481181534e12ec0a25f16b6fcf419e-integrity/: Cannot extract through symlink tmp/yarn/v6/npm-@babel-code-frame-7.8.3-33e25903d7481181534e12ec0a25f16b6fcf419e-integrity tmp/yarn/v6/npm-@babel-code-frame-7.8.3-33e25903d7481181534e12ec0a25f16b6fcf419e-integrity/node_modules/: Cannot extract through symlink tmp/yarn/v6/npm-@babel-code-frame-7.8.3-33e25903d7481181534e12ec0a25f16b6fcf419e-integrity/node_modules tmp/yarn/v6/npm-@babel-code-frame-7.8.3-33e25903d7481181534e12ec0a25f16b6fcf419e-integrity/node_modules/@babel/: Cannot extract through symlink tmp/yarn/v6/npm-@babel-code-frame-7.8.3-33e25903d7481181534e12ec0a25f16b6fcf419e-integrity/node_modules/@babel tmp/yarn/v6/npm-@babel-code-frame-7.8.3-33e25903d7481181534e12ec0a25f16b6fcf419e-integrity/node_modules/@babel/code-frame/: Cannot extract: exit status 1
96+
- run:
97+
command: yarn install --frozen-lockfile
98+
name: yarn install
99+
- run:
100+
command: npx semantic-release
101+
name: Publish to NPM
102+
89103

90104
workflows:
91105
test:
@@ -100,3 +114,10 @@ workflows:
100114
- e2e_release_android:
101115
requires:
102116
- analyse_js
117+
- publish:
118+
requires:
119+
- e2e_release_android
120+
- e2e_release_ios
121+
filters:
122+
branches:
123+
only: master

.releaserc

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

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@
5555
"@babel/core": "^7.5.5",
5656
"@babel/runtime": "^7.5.5",
5757
"@react-native-community/eslint-config": "^1.0.0",
58+
"@semantic-release/git": "^9.0.0",
5859
"babel-jest": "^26.0.1",
5960
"detox": "^16.5.1",
6061
"eslint": "^6.8.0",
@@ -68,7 +69,8 @@
6869
"react": "^16.11.0",
6970
"react-native": "^0.62.2",
7071
"react-native-windows": "^0.62.0-0",
71-
"react-test-renderer": "^16.11.0"
72+
"react-test-renderer": "^16.11.0",
73+
"semantic-release": "^17.1.1"
7274
},
7375
"peerDependencies": {
7476
"react": ">=16.8.3",

0 commit comments

Comments
 (0)