is this gonna work

This commit is contained in:
Core 2022-05-02 05:22:41 +01:00
parent 4c2d64ef0d
commit 561ee3fe82
No known key found for this signature in database
GPG key ID: FE9BF1B547F8F3C6

View file

@ -20,10 +20,7 @@ if (process.env['CIRCLE_BRANCH'] === 'lts') {
channel = process.env['CIRCLE_BRANCH'] // It won't have auto update support channel = process.env['CIRCLE_BRANCH'] // It won't have auto update support
} }
channel.split('/').join('-')
if (channel.includes('/')) {
channel.replace('/', '-')
}
// 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('.');