Test Build with version build number

This commit is contained in:
yazninja 2022-05-21 00:33:52 +08:00 committed by GitHub
parent 6e438c7eb7
commit 52844317a9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -20,7 +20,7 @@ channel = channel.split('/').join('-')
// https://circleci.com/docs/2.0/env-vars/#built-in-environment-variables // https://circleci.com/docs/2.0/env-vars/#built-in-environment-variables
const version = pkg.version.split('.'); const version = pkg.version.split('.');
pkg.version = `${version[0]}.${version[1]}.${version[2]}-${channel}` pkg.version = `${version[0]}.${version[1]}.${version[2]}-${channel}.${process.env['CIRCLE_BUILD_NUM']}`
// package.build.channel = channel // package.build.channel = channel
pkg.publish = { pkg.publish = {
"provider": "github", "provider": "github",