infra: automate continuous deployment (#157)

This commit is contained in:
Brandon Keiji
2025-04-24 21:36:58 +00:00
committed by GitHub
parent 4dc98b3c7e
commit 0510d06ecf
2 changed files with 33 additions and 14 deletions

24
.gcp/cd.yaml Normal file
View File

@@ -0,0 +1,24 @@
steps:
# Install dependencies
- name: 'gcr.io/cloud-builders/npm'
args: ['install']
# Run prerelease versioning script across workspaces with dynamic version
- name: 'gcr.io/cloud-builders/npm'
entrypoint: 'bash'
args:
- '-c'
- |
npm run prerelease:version --workspaces -- --suffix="$(date +%Y%m%d)-$_SHORT_SHA.$_BUILD_ID"
# Run prerelease dependency script across workspaces
- name: 'gcr.io/cloud-builders/npm'
args: ['run', 'prerelease:deps', '--workspaces']
# Authenticate with our registry
- name: gcr.io/cloud-builders/npm
args: ['run', 'artifactregistry-login']
# Publish packages from workspaces with 'dogfood' tag
- name: 'gcr.io/cloud-builders/npm'
args: ['publish', '--tag=head', '--workspaces']