Use CI to update package versions

because I was sick of changing it everywhere
This commit is contained in:
Jamie Curnow
2020-03-11 08:27:05 +10:00
parent 88f45df48f
commit 9fdf0c6b62
3 changed files with 8 additions and 2 deletions

6
Jenkinsfile vendored
View File

@ -42,6 +42,12 @@ pipeline {
}
}
}
stage('Versions') {
steps {
sh 'cat frontend/package.json | jq --arg BUILD_VERSION "${BUILD_VERSION}" \'.version = $BUILD_VERSION\' | sponge frontend/package.json'
sh 'cat backend/package.json | jq --arg BUILD_VERSION "${BUILD_VERSION}" \'.version = $BUILD_VERSION\' | sponge backend/package.json'
}
}
}
}
stage('Frontend') {