mirror of
https://github.com/status-im/status-react.git
synced 2025-02-26 01:25:33 +00:00
fix .version file creation in release builds
This commit is contained in:
parent
428f1d47ee
commit
68997983e5
@ -34,11 +34,11 @@ node ('macos1'){
|
||||
error "Wrong branch name format: " + BRANCH_NAME + ", but it should be `release/version`"
|
||||
}
|
||||
|
||||
checkout
|
||||
|
||||
version = BRANCH_NAME.substring(8)
|
||||
sh 'echo "' + version + '" > .version'
|
||||
|
||||
checkout scm
|
||||
|
||||
sh 'git fetch --tags'
|
||||
|
||||
sh 'rm -rf node_modules'
|
||||
|
@ -34,13 +34,11 @@ node ('macos1'){
|
||||
error "Wrong branch name format: " + BRANCH_NAME + ", but it should be `release/version`"
|
||||
}
|
||||
|
||||
checkout scm
|
||||
|
||||
version = BRANCH_NAME.substring(8)
|
||||
sh 'echo "' + version + '" > .version'
|
||||
|
||||
println version
|
||||
|
||||
checkout scm
|
||||
|
||||
sh 'git fetch --tags'
|
||||
|
||||
sh 'rm -rf node_modules'
|
||||
|
Loading…
x
Reference in New Issue
Block a user