From 3bd7ba95f866c1ddad6f167029b7681049fec18e Mon Sep 17 00:00:00 2001 From: Josh Mock Date: Thu, 28 Mar 2024 15:42:43 -0500 Subject: [PATCH] Bump main to 8.14.0 (#2198) * 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 --- .buildkite/make.mjs | 5 +++-- .buildkite/pipeline.yml | 2 +- .gitignore | 1 + package.json | 4 ++-- 4 files changed, 7 insertions(+), 5 deletions(-) diff --git a/.buildkite/make.mjs b/.buildkite/make.mjs index b9366e404..0f3e724fd 100644 --- a/.buildkite/make.mjs +++ b/.buildkite/make.mjs @@ -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` diff --git a/.buildkite/pipeline.yml b/.buildkite/pipeline.yml index 1456b8d73..e27888106 100644 --- a/.buildkite/pipeline.yml +++ b/.buildkite/pipeline.yml @@ -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: diff --git a/.gitignore b/.gitignore index 5c0af8e20..c38ae71df 100644 --- a/.gitignore +++ b/.gitignore @@ -63,3 +63,4 @@ test/bundlers/**/bundle.js test/bundlers/parcel-test/.parcel-cache lib +junit-output diff --git a/package.json b/package.json index 6af5a7eba..5528f09c3 100644 --- a/package.json +++ b/package.json @@ -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",