Skip to content

Commit

Permalink
Bump main to 8.14.0 (#2198)
Browse files Browse the repository at this point in the history
* Improve version bump script's assertion feedback

* Add junit output to gitignore

* Assume x.0 if a patch value is not provided

* Bump package to 8.14
  • Loading branch information
JoshMock authored Mar 28, 2024
1 parent f96aa32 commit 3bd7ba9
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
5 changes: 3 additions & 2 deletions .buildkite/make.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -74,14 +74,15 @@ async function release (args) {

async function bump (args) {
assert(args.length === 1, 'Bump task expects one parameter')
const [version] = args
let [version] = args
const packageJson = JSON.parse(await readFile(
join(import.meta.url, '..', 'package.json'),
'utf8'
))

if (version.split('.').length === 2) version = `${version}.0`
const cleanVersion = semver.clean(version.includes('SNAPSHOT') ? version.split('-')[0] : version)
assert(semver.valid(cleanVersion))
assert(semver.valid(cleanVersion), `${cleanVersion} is not seen as a valid semver version. raw version: ${version}`)
packageJson.version = cleanVersion
packageJson.versionCanary = `${cleanVersion}-canary.0`

Expand Down
2 changes: 1 addition & 1 deletion .buildkite/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ steps:
env:
NODE_VERSION: "{{ matrix.nodejs }}"
TEST_SUITE: "{{ matrix.suite }}"
STACK_VERSION: 8.13.0
STACK_VERSION: 8.14.0
matrix:
setup:
suite:
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -63,3 +63,4 @@ test/bundlers/**/bundle.js
test/bundlers/parcel-test/.parcel-cache

lib
junit-output
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@elastic/elasticsearch",
"version": "8.13.0",
"versionCanary": "8.13.0-canary.0",
"version": "8.14.0",
"versionCanary": "8.14.0-canary.0",
"description": "The official Elasticsearch client for Node.js",
"main": "index.js",
"types": "index.d.ts",
Expand Down

0 comments on commit 3bd7ba9

Please sign in to comment.