Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
# invoke in repo root
Invoke-InDirectory "$PSScriptRoot/.." {
Invoke-InDirectory "./components" {
npm install
npm build
}
Invoke-InDirectory "./server" {
npm install
npm build
}
# deploy our monorepo
$timestamp = Get-Date -Format 'yyyyMMddhhmmss'
git checkout -b "release/$timestamp"
git add ./components/build --force
git add ./server/build --force
git commit -am "adding deployment artifacts to release branch"
git push production master
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment