diff options
| author | Brandon Keiji <[email protected]> | 2025-04-24 21:36:58 +0000 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-04-24 14:36:58 -0700 |
| commit | 0510d06ecfd58a29ea0e0e540eecf8ef33c3153e (patch) | |
| tree | 76ee5c73cec11e37f8d10e784632067e869dfd57 /.gcp | |
| parent | 4dc98b3c7e8bf7e4202e95dbcbfae124ad0654e1 (diff) | |
infra: automate continuous deployment (#157)
Diffstat (limited to '.gcp')
| -rw-r--r-- | .gcp/cd.yaml | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/.gcp/cd.yaml b/.gcp/cd.yaml new file mode 100644 index 00000000..f3154efb --- /dev/null +++ b/.gcp/cd.yaml @@ -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'] |
