mirror of
https://github.com/QwenLM/qwen-code.git
synced 2025-12-20 08:47:44 +00:00
fix: install rsync in publish pipeline (#166)
This commit is contained in:
@@ -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
|
||||||
|
|||||||
44
.gcp/publish-dry-run.yaml
Normal file
44
.gcp/publish-dry-run.yaml
Normal 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
|
||||||
Reference in New Issue
Block a user