diff options
| author | Brandon Keiji <[email protected]> | 2025-04-25 02:53:59 +0000 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-04-24 19:53:59 -0700 |
| commit | f34ac6272cae99eef745cf22249d8e87a50f4341 (patch) | |
| tree | 044d3135e0183a854929b358a58330f2ad1edfe5 /.gcp/publish-dry-run.yaml | |
| parent | 08463e6114f0b54f07acb86c519a0168d9736dbb (diff) | |
fix: install rsync in publish pipeline (#166)
Diffstat (limited to '.gcp/publish-dry-run.yaml')
| -rw-r--r-- | .gcp/publish-dry-run.yaml | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/.gcp/publish-dry-run.yaml b/.gcp/publish-dry-run.yaml new file mode 100644 index 00000000..4f10fe5f --- /dev/null +++ b/.gcp/publish-dry-run.yaml @@ -0,0 +1,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 |
