fix: install rsync in publish pipeline (#166)
This commit is contained in:
parent
08463e6114
commit
f34ac6272c
|
@ -1,11 +1,11 @@
|
||||||
steps:
|
steps:
|
||||||
# Install dependencies
|
# Install dependencies
|
||||||
- name: 'node'
|
- name: 'node:bookworm'
|
||||||
entrypoint: 'npm'
|
entrypoint: 'npm'
|
||||||
args: ['install']
|
args: ['install']
|
||||||
|
|
||||||
# Run prerelease versioning script across workspaces with dynamic version
|
# Run prerelease versioning script across workspaces with dynamic version
|
||||||
- name: 'node'
|
- name: 'node:bookworm'
|
||||||
entrypoint: 'npm'
|
entrypoint: 'npm'
|
||||||
args:
|
args:
|
||||||
[
|
[
|
||||||
|
@ -17,19 +17,25 @@ steps:
|
||||||
]
|
]
|
||||||
|
|
||||||
# Run prerelease dependency script across workspaces
|
# Run prerelease dependency script across workspaces
|
||||||
- name: 'node'
|
- name: 'node:bookworm'
|
||||||
entrypoint: 'npm'
|
entrypoint: 'npm'
|
||||||
args: ['run', 'prerelease:deps', '--workspaces']
|
args: ['run', 'prerelease:deps', '--workspaces']
|
||||||
|
|
||||||
# Authenticate with our registry
|
# Authenticate with our registry
|
||||||
- name: 'node'
|
- name: 'node:bookworm'
|
||||||
entrypoint: 'npm'
|
entrypoint: 'npm'
|
||||||
args: ['run', 'auth']
|
args: ['run', 'auth']
|
||||||
|
|
||||||
# Publish packages from workspaces with 'dogfood' tag
|
# Publish packages from workspaces with 'dogfood' tag
|
||||||
- name: 'node'
|
# we awkwardly need to install rsync beforehand. TODO: use a dedicated dev container
|
||||||
entrypoint: 'npm'
|
- name: 'node:bookworm'
|
||||||
args: ['publish', '--tag=head', '--workspaces']
|
entrypoint: 'bash'
|
||||||
|
args:
|
||||||
|
- '-c'
|
||||||
|
- |
|
||||||
|
apt-get update -y
|
||||||
|
apt-get install -y rsync
|
||||||
|
npm publish --tag=head --workspaces
|
||||||
|
|
||||||
options:
|
options:
|
||||||
defaultLogsBucketBehavior: REGIONAL_USER_OWNED_BUCKET
|
defaultLogsBucketBehavior: REGIONAL_USER_OWNED_BUCKET
|
||||||
|
|
|
@ -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
|
Loading…
Reference in New Issue