From b8f1514f3989f21d543c8a7bc5a416a279c785e7 Mon Sep 17 00:00:00 2001 From: Josh Mock Date: Thu, 5 Dec 2024 10:32:36 -0600 Subject: [PATCH 1/2] Bump version to 9.0.0-alpha.1 --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index be1048c4d..cb7e385f0 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@elastic/elasticsearch", - "version": "8.16.0", - "versionCanary": "8.16.0-canary.0", + "version": "9.0.0-alpha.1", + "versionCanary": "9.0.0-canary.0", "description": "The official Elasticsearch client for Node.js", "main": "./index.js", "types": "index.d.ts", From 033363e3f8ee2b34b4df56b21499875ca999e58d Mon Sep 17 00:00:00 2001 From: Josh Mock Date: Thu, 5 Dec 2024 10:36:50 -0600 Subject: [PATCH 2/2] Update npm publish workflow for 9.0.0 alpha --- .github/workflows/npm-publish.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index 68bb353d7..cd8c2caf9 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -23,13 +23,14 @@ jobs: - run: npm install -g npm - run: npm install - run: npm test - - run: npm publish --provenance --access public + - run: npm publish --provenance --access public --tag alpha env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} - - run: | + - name: Publish version on GitHub + run: | version=$(jq -r .version package.json) gh release create \ - -n "[Changelog](https://www.elastic.co/guide/en/elasticsearch/client/javascript-api/$BRANCH_NAME/changelog-client.html)" \ + -n "This is a 9.0.0 pre-release alpha. Changes may not be stable." \ --target "$BRANCH_NAME" \ -t "v$version" \ "v$version"