From 3bd16146f5047ba42405757875b9281bb9a36dc6 Mon Sep 17 00:00:00 2001 From: Max Kasperowski Date: Wed, 20 Dec 2023 10:37:10 +0100 Subject: [PATCH 1/5] Update release guide --- README.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 03af287..ab484b0 100644 --- a/README.md +++ b/README.md @@ -335,15 +335,18 @@ Afterwards you can find the created files in the `lib` folder. Current procedure ```bash git checkout -b releases/0.x.x -# Update versions and commit the changes +# Check that the version numbers are correct, if necessary update versions and commit the changes npm install npm run build npm run test # Add ./lib/ directory and commit git tag 0.x.x -# Push release branch an tags to remote +# Push release branch and tags to remote npm publish ``` +Afterwards the following version numbers have to be changed to the next release number: +* `version` in `package.json`, +* `melk` in `build.gradle`. # Links In the following a list of asorted links to other projects and sites that may prove helpful: From e5bf7317ebec592f8ff9a5ba8172bfdf280e2c02 Mon Sep 17 00:00:00 2001 From: Max Kasperowski Date: Wed, 20 Dec 2023 10:50:33 +0100 Subject: [PATCH 2/5] Update ci.yml (#254) Removes Java 8, since ELK 0.9.0 no longer supports Java 8. --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 85921ec..a6d756f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -22,7 +22,7 @@ jobs: fail-fast: false matrix: node-version: [ 14.x, 16.x, 18.x ] - java-version: [ 8, 11, 13, 15, 17 ] + java-version: [ 11, 13, 15, 17 ] steps: - uses: actions/checkout@v1 From 92c04cce8f6379dc66bb0857d88ba095c89d0b3b Mon Sep 17 00:00:00 2001 From: Max Kasperowski Date: Mon, 8 Jan 2024 09:01:21 +0100 Subject: [PATCH 3/5] add info to create github release before publishing on npm --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index ab484b0..c83e16b 100644 --- a/README.md +++ b/README.md @@ -342,6 +342,7 @@ npm run test # Add ./lib/ directory and commit git tag 0.x.x # Push release branch and tags to remote +# Create a new release on Github for the new tag and afterwards publish to npm npm publish ``` Afterwards the following version numbers have to be changed to the next release number: From 943b4765b2b1ec85243516be52f7e8d441fda4ed Mon Sep 17 00:00:00 2001 From: Max Kasperowski Date: Mon, 8 Jan 2024 09:30:14 +0100 Subject: [PATCH 4/5] update guide --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index c83e16b..296aa37 100644 --- a/README.md +++ b/README.md @@ -336,6 +336,7 @@ Current procedure ```bash git checkout -b releases/0.x.x # Check that the version numbers are correct, if necessary update versions and commit the changes +# in package.json set "publishconfig.tag" to "latest" npm install npm run build npm run test From ac2a43e0eb98ec448a7ba3902806c2b3373b2929 Mon Sep 17 00:00:00 2001 From: Max Kasperowski Date: Mon, 8 Jan 2024 10:31:32 +0100 Subject: [PATCH 5/5] update release guide with info on how to correctly tag npm versions --- README.md | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 296aa37..b472023 100644 --- a/README.md +++ b/README.md @@ -336,20 +336,23 @@ Current procedure ```bash git checkout -b releases/0.x.x # Check that the version numbers are correct, if necessary update versions and commit the changes -# in package.json set "publishconfig.tag" to "latest" npm install npm run build npm run test # Add ./lib/ directory and commit git tag 0.x.x # Push release branch and tags to remote -# Create a new release on Github for the new tag and afterwards publish to npm -npm publish +# Create a new release on Github for the new tag and afterwards publish to npm +npm publish --tag=latest ``` Afterwards the following version numbers have to be changed to the next release number: * `version` in `package.json`, * `melk` in `build.gradle`. +## Incorrect npm tags +Incorrectly tagged versions on npm can be updated with +`npm dist-tag add elkjs@ `. + # Links In the following a list of asorted links to other projects and sites that may prove helpful: * [Execution time comparison to Java ELK](https://github.com/kieler/elk-speed)