chore(ci) add publish step on master commits (#48)
fix(ci): initial release using semantic-release
This commit is contained in:
parent
6fbb334b4e
commit
2b6afeac3d
|
@ -35,6 +35,14 @@ jobs:
|
|||
- run:
|
||||
name: iOS JavaScript Bundle
|
||||
command: yarn run test:detox:ios:bundle:release
|
||||
publish:
|
||||
executor: rn/linux_js
|
||||
steps:
|
||||
- attach_workspace:
|
||||
at: .
|
||||
- run:
|
||||
name: Publish to NPM
|
||||
command: yarn ci:publish
|
||||
|
||||
workflows:
|
||||
test:
|
||||
|
@ -43,18 +51,18 @@ workflows:
|
|||
- analyze:
|
||||
requires:
|
||||
- checkout_code
|
||||
# - rn/android_build:
|
||||
# name: android_debug_build
|
||||
# project_path: "example/android"
|
||||
# build_type: debug
|
||||
# requires:
|
||||
# - analyze
|
||||
# - rn/android_build:
|
||||
# name: android_release_build
|
||||
# project_path: "example/android"
|
||||
# build_type: release
|
||||
# requires:
|
||||
# - analyze
|
||||
- rn/android_build:
|
||||
name: android_debug_build
|
||||
project_path: "example/android"
|
||||
build_type: debug
|
||||
requires:
|
||||
- analyze
|
||||
- rn/android_build:
|
||||
name: android_release_build
|
||||
project_path: "example/android"
|
||||
build_type: release
|
||||
requires:
|
||||
- analyze
|
||||
# - rn/android_test:
|
||||
# logcat_grep: "com.camerarollexample"
|
||||
# detox_configuration: "android.emu.release"
|
||||
|
@ -69,3 +77,10 @@ workflows:
|
|||
# detox_configuration: "ios.sim.release"
|
||||
# requires:
|
||||
# - analyze
|
||||
- publish:
|
||||
requires:
|
||||
- checkout_code
|
||||
- analyze
|
||||
filters:
|
||||
branches:
|
||||
only: master
|
||||
|
|
|
@ -0,0 +1,15 @@
|
|||
{
|
||||
"plugins": [
|
||||
"@semantic-release/commit-analyzer",
|
||||
"@semantic-release/release-notes-generator",
|
||||
"@semantic-release/npm",
|
||||
"@semantic-release/github",
|
||||
[
|
||||
"@semantic-release/git",
|
||||
{
|
||||
"assets": "package.json",
|
||||
"message": "chore(release): ${nextRelease.version} [skip ci] \n\n${nextRelease.notes}"
|
||||
}
|
||||
]
|
||||
]
|
||||
}
|
Loading…
Reference in New Issue