fix: install rsync in publish pipeline (#166)
This commit is contained in:
parent
08463e6114
commit
f34ac6272c
|
@ -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
|
||||
|
|
|
@ -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