Skip to content

Commit e710c1a

Browse files
committed
chore: update release scripts to follow new style
1 parent 642c178 commit e710c1a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

scripts/changelog.cjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ const resolve = paths => path.resolve(__dirname, `../${name}/${paths}`)
3030
* @param {string} name
3131
*/
3232
function writePackageJson (name) {
33-
const versionRegex = /VERSION = '([\d.]+(?:[-.]\w+)?)'/
33+
const versionRegex = /VERSION = "([\d.]+(?:[-.]\w+)?)"/
3434
const versionFile = fs.readFileSync(resolve(`lib/${name}/version.rb`), 'utf-8')
3535
const versionCaptures = versionFile.match(versionRegex)
3636
const version = versionCaptures && versionCaptures[1]

scripts/release.cjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ function resolve (paths) {
8383
}
8484

8585
function rubyPackage () {
86-
const versionRegex = /VERSION = '([\d.]+(?:[-.]\w+)?)'/
86+
const versionRegex = /VERSION = "([\d.]+(?:[-.]\w+)?)"/
8787
const path = resolve(`lib/${name}/version.rb`)
8888
const content = fs.readFileSync(path, 'utf-8')
8989
const versionCaptures = content.match(versionRegex)
@@ -98,7 +98,7 @@ function rubyPackage () {
9898
content,
9999
version,
100100
updateVersion (version) {
101-
const newContent = content.replace(versionRegex, `VERSION = '${version}'`)
101+
const newContent = content.replace(versionRegex, `VERSION = "${version}"`)
102102
fs.writeFileSync(path, `${newContent}`)
103103
},
104104
}

0 commit comments

Comments
 (0)