summaryrefslogtreecommitdiff
path: root/.gcp/publish-dry-run.yaml
blob: 4f10fe5f97e62963cff5a46d93dea2c387c5808d (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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
steps:
  # Install dependencies
  - name: 'ubuntu'
    entrypoint: 'bash'
    args: ['-c', 'apt-get', 'install', '-y', 'rsync']
  - name: 'node'
    entrypoint: 'npm'
    args: ['install']

  # Run prerelease versioning script across workspaces with dynamic version
  - name: 'node'
    entrypoint: 'npm'
    args:
      [
        'run',
        'prerelease:version',
        '--workspaces',
        '--',
        '--suffix="$SHORT_SHA.$_REVISION"',
      ]

  # Run prerelease dependency script across workspaces
  - name: 'node'
    entrypoint: 'npm'
    args: ['run', 'prerelease:deps', '--workspaces']

  # Authenticate with our registry
  - name: 'node'
    entrypoint: 'npm'
    args: ['run', 'auth']

  # Dry run publish to make sure that's not broken
  # we awkwardly need to install rsync beforehand. TODO: use a dedicated dev container
  - name: 'node:bookworm'
    entrypoint: 'bash'
    args:
      - '-c'
      - |
        apt-get update -y
        apt-get install -y rsync
        npm publish --dry-run --tag=head --workspaces

options:
  defaultLogsBucketBehavior: REGIONAL_USER_OWNED_BUCKET