Skip to content

Commit

Permalink
Fix version bump script failure
Browse files Browse the repository at this point in the history
It was trying to run `.replace` on a Buffer instead of a string.
  • Loading branch information
JoshMock committed Nov 2, 2023
1 parent 2d139e5 commit 68d07e6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .ci/make.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -86,10 +86,10 @@ async function bump (args) {
'utf8'
)

const pipeline = await readFile(join(import.meta.url, '..', '.buildkite', 'pipeline.yml'))
const pipeline = await readFile(join(import.meta.url, '..', '.buildkite', 'pipeline.yml'), 'utf8')
await writeFile(
join(import.meta.url, '..', '.buildkite', 'pipeline.yml'),
pipeline.replace(/STACK_VERSION: [0-9]+[0-9\.]*[0-9](?:\-SNAPSHOT)?/, `STACK_VERSION: ${cleanVersion}-SNAPSHOT`), // eslint-disable-line
pipeline.replace(/STACK_VERSION: [0-9]+[0-9\.]*[0-9](?:\-SNAPSHOT)?/, `STACK_VERSION: ${cleanVersion}-SNAPSHOT`),
'utf8'
)
}
Expand Down

0 comments on commit 68d07e6

Please sign in to comment.