42 lines
1.0 KiB
YAML
42 lines
1.0 KiB
YAML
steps:
|
|
# Install dependencies
|
|
- name: 'node:bookworm'
|
|
entrypoint: 'npm'
|
|
args: ['install']
|
|
|
|
# Run prerelease versioning script across workspaces with dynamic version
|
|
- name: 'node:bookworm'
|
|
entrypoint: 'npm'
|
|
args:
|
|
[
|
|
'run',
|
|
'prerelease:version',
|
|
'--workspaces',
|
|
'--',
|
|
'--suffix="$SHORT_SHA.$_REVISION"',
|
|
]
|
|
|
|
# Run prerelease dependency script across workspaces
|
|
- name: 'node:bookworm'
|
|
entrypoint: 'npm'
|
|
args: ['run', 'prerelease:deps', '--workspaces']
|
|
|
|
# Authenticate with our registry
|
|
- name: 'node:bookworm'
|
|
entrypoint: 'npm'
|
|
args: ['run', 'auth:npm']
|
|
|
|
# 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
|