summaryrefslogtreecommitdiff
path: root/.gcp/cd.yaml
blob: f3154efbbf3655476b3e371f678794e482b9737c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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']