feat: respect RELEASE_VERSION env variable
This commit is contained in:
parent
bff691cf20
commit
f93fe8dcc6
1 changed files with 5 additions and 1 deletions
|
@ -9,7 +9,11 @@ export function getNapiConfig(packageJson = 'package.json') {
|
|||
(platform: string) => `${platform}-musl`,
|
||||
)
|
||||
const platforms = os
|
||||
const version = packageVersion
|
||||
const releaseVersion = process.env.RELEASE_VERSION
|
||||
const releaseVersionWithoutPrefix = releaseVersion?.startsWith('v')
|
||||
? releaseVersion.substr(1)
|
||||
: releaseVersion
|
||||
const version = releaseVersionWithoutPrefix ?? packageVersion
|
||||
const packageName = name
|
||||
|
||||
const binaryName = napi?.name ?? 'index'
|
||||
|
|
Loading…
Reference in a new issue