Skip to content

Commit 4bbf6f9

Browse files
committed
ci: fix verdaccio in CodeBuild
1 parent ec5cde1 commit 4bbf6f9

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

util/local_verdaccio_publish

+6-1
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,11 @@ const args = [
3737
'--no-verify-access',
3838
'--force-publish'
3939
]
40+
41+
if ("CODEBUILD_RESOLVED_SOURCE_VERSION" in process.env) {
42+
args.push('--git-head ${CODEBUILD_RESOLVED_SOURCE_VERSION}')
43+
}
44+
4045
spawn('npx', args, pipeStdIo)
4146
.on('close', (code) => {
4247
// The above command will make some modifications,
@@ -52,4 +57,4 @@ spawn('npx', args, pipeStdIo)
5257
// we need to forward this.
5358
// Otherwise the entire CI build may think that things succeeded.
5459
if (code !== 0) throw Error(`Exit code: ${code}`)
55-
})
60+
})

0 commit comments

Comments
 (0)