fix: install rsync in publish pipeline (#166)

This commit is contained in:
Brandon Keiji 2025-04-25 02:53:59 +00:00 committed by GitHub
parent 08463e6114
commit f34ac6272c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 57 additions and 7 deletions

View File

@ -1,11 +1,11 @@
steps:
# Install dependencies
- name: 'node'
- name: 'node:bookworm'
entrypoint: 'npm'
args: ['install']
# Run prerelease versioning script across workspaces with dynamic version
- name: 'node'
- name: 'node:bookworm'
entrypoint: 'npm'
args:
[
@ -17,19 +17,25 @@ steps:
]
# Run prerelease dependency script across workspaces
- name: 'node'
- name: 'node:bookworm'
entrypoint: 'npm'
args: ['run', 'prerelease:deps', '--workspaces']
# Authenticate with our registry
- name: 'node'
- name: 'node:bookworm'
entrypoint: 'npm'
args: ['run', 'auth']
# Publish packages from workspaces with 'dogfood' tag
- name: 'node'
entrypoint: 'npm'
args: ['publish', '--tag=head', '--workspaces']
# 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 --tag=head --workspaces
options:
defaultLogsBucketBehavior: REGIONAL_USER_OWNED_BUCKET

44
.gcp/publish-dry-run.yaml Normal file
View File

@ -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