This commit is contained in:
yazninja 2022-05-21 00:54:14 +08:00
parent 52844317a9
commit d8e6f97592
2 changed files with 4 additions and 1 deletions

View file

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