From 9069012139f24ab785ae0f5c75f2150cc66bbd49 Mon Sep 17 00:00:00 2001 From: Ismoh <12631485+Ismoh@users.noreply.github.com> Date: Mon, 13 Oct 2025 15:01:36 +0200 Subject: [PATCH 01/26] test npm version bump --- package-lock.json | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index 400089b..4a12f30 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "second-local-lua-debugger-vscode", - "version": "0.3.9", + "version": "0.3.10", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "second-local-lua-debugger-vscode", - "version": "0.3.9", + "version": "0.3.10", "license": "MIT", "dependencies": { "@vscode/debugadapter": "^1.67.0" diff --git a/package.json b/package.json index 4de0f45..df8c8be 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "second-local-lua-debugger-vscode", "publisher": "ismoh-games", - "version": "0.3.9", + "version": "0.3.10", "description": "Second Local Lua Debugger - simple Lua debugger with no dependencies - forked from https://github.com/tomblind/local-lua-debugger-vscode", "displayName": "Second Local Lua Debugger", "icon": "resources/Lua-Logo_128x128.png", From 85c8eb3ffe948e010077cef19d909d1cc963283b Mon Sep 17 00:00:00 2001 From: Ismoh <12631485+Ismoh@users.noreply.github.com> Date: Mon, 13 Oct 2025 15:59:00 +0200 Subject: [PATCH 02/26] feat: add GitHub action for easier release creation Refs: #14 --- .github/workflows/release-tag.yml | 51 +++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 .github/workflows/release-tag.yml diff --git a/.github/workflows/release-tag.yml b/.github/workflows/release-tag.yml new file mode 100644 index 0000000..d7f0a64 --- /dev/null +++ b/.github/workflows/release-tag.yml @@ -0,0 +1,51 @@ +name: Release tag before publish +on: workflow_dispatch +jobs: + release-tag: + name: Create new release tag + runs-on: ubuntu-latest + steps: + - name: Bump version + run: | + if git diff --quiet CHANGELOG.md; then + message='Unable to find actual changes in CHANGELOG.md. Do proper changes and rerun this job!' + echo "::error file={name},line={line},endLine={endLine},title={title}::{message}" + exit 1 + fi + + prevVer=$(node -p "require('./package.json').version") + echo "Current version: $prevVer" + + msgs=$(git log --oneline $(git describe --tags --abbrev=0)..HEAD) + + if [[ ${msgs,,} =~ ^(fix|refactoring) ]]; then + npm --no-git-tag-version version patch + else + echo "no 'fix' or 'refactoring' commit message found.." + fi + + if [[ ${msgs,,} =~ ^(feat) ]]; then + npm --no-git-tag-version version minor + else + echo "no 'feat' commit meassage found.." + fi + + if [[ ${msgs,,} =~ ^(breaking change|!) ]]; then + npm --no-git-tag-version version patch + else + echo "no 'BREAKING CHANGE' or '!' found.." + fi + + newVer=$(node -p "require('./package.json').version") + + if [[ "$prevVer" == "$newVer" ]]; then + message='Unable to find actual version changes. Did you use proper conventional commit messages?' + echo "::error file={name},line={line},endLine={endLine},title={title}::{message}" + exit 1 + fi + + #clean + rm debugger/*.lua; rm debugger/*.lua.map; rm extension/*.js; rm extension/*.js.map; rm *.vsix + npm lint + npm build + npm bundle From a6075742d9f28634e4797035d9a21c743b366b8b Mon Sep 17 00:00:00 2001 From: Ismoh <12631485+Ismoh@users.noreply.github.com> Date: Mon, 13 Oct 2025 16:08:01 +0200 Subject: [PATCH 03/26] chore: change version from testing Refs: #14 --- .vscode/launch.json | 4 ++-- package-lock.json | 4 ++-- package.json | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.vscode/launch.json b/.vscode/launch.json index 0bb85bd..6551356 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -20,10 +20,10 @@ "request": "launch", "runtimeExecutable": "${execPath}", "args": [ - "--extensionDevelopmentPath=${workspaceFolder}/../../.vscode/extensions/ismoh-games.second-local-lua-debugger-vscode-0.3.6" + "--extensionDevelopmentPath=${workspaceFolder}/../../.vscode/extensions/ismoh-games.second-local-lua-debugger-vscode-0.3.9" ], "outFiles": [ - "${workspaceFolder}/../../.vscode/extensions/ismoh-games.second-local-lua-debugger-vscode-0.3.6/**/*.js" + "${workspaceFolder}/../../.vscode/extensions/ismoh-games.second-local-lua-debugger-vscode-0.3.9/**/*.js" ], // "preLaunchTask": "npm: watch" }, diff --git a/package-lock.json b/package-lock.json index 4a12f30..400089b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "second-local-lua-debugger-vscode", - "version": "0.3.10", + "version": "0.3.9", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "second-local-lua-debugger-vscode", - "version": "0.3.10", + "version": "0.3.9", "license": "MIT", "dependencies": { "@vscode/debugadapter": "^1.67.0" diff --git a/package.json b/package.json index df8c8be..4de0f45 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "second-local-lua-debugger-vscode", "publisher": "ismoh-games", - "version": "0.3.10", + "version": "0.3.9", "description": "Second Local Lua Debugger - simple Lua debugger with no dependencies - forked from https://github.com/tomblind/local-lua-debugger-vscode", "displayName": "Second Local Lua Debugger", "icon": "resources/Lua-Logo_128x128.png", From b2c41b9a925c3e37ed43850e303ad27cccd0b306 Mon Sep 17 00:00:00 2001 From: Ismoh <12631485+Ismoh@users.noreply.github.com> Date: Mon, 13 Oct 2025 16:39:21 +0200 Subject: [PATCH 04/26] chore: fix missing git checkout --- .github/workflows/release-tag.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/release-tag.yml b/.github/workflows/release-tag.yml index d7f0a64..4b487d2 100644 --- a/.github/workflows/release-tag.yml +++ b/.github/workflows/release-tag.yml @@ -5,6 +5,9 @@ jobs: name: Create new release tag runs-on: ubuntu-latest steps: + - uses: actions/checkout@master + with: + ref: ${{ github.ref }} - name: Bump version run: | if git diff --quiet CHANGELOG.md; then From a783cf4073aaac59bcbc917dafed89ecc2d4aa8a Mon Sep 17 00:00:00 2001 From: Ismoh <12631485+Ismoh@users.noreply.github.com> Date: Mon, 13 Oct 2025 16:40:56 +0200 Subject: [PATCH 05/26] chore: fix typo when using bash variable --- .github/workflows/release-tag.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release-tag.yml b/.github/workflows/release-tag.yml index 4b487d2..5f1a1ee 100644 --- a/.github/workflows/release-tag.yml +++ b/.github/workflows/release-tag.yml @@ -12,7 +12,7 @@ jobs: run: | if git diff --quiet CHANGELOG.md; then message='Unable to find actual changes in CHANGELOG.md. Do proper changes and rerun this job!' - echo "::error file={name},line={line},endLine={endLine},title={title}::{message}" + echo "::error file={name},line={line},endLine={endLine},title={title}::${message}" exit 1 fi @@ -43,7 +43,7 @@ jobs: if [[ "$prevVer" == "$newVer" ]]; then message='Unable to find actual version changes. Did you use proper conventional commit messages?' - echo "::error file={name},line={line},endLine={endLine},title={title}::{message}" + echo "::error file={name},line={line},endLine={endLine},title={title}::${message}" exit 1 fi From eb5744ce1a6930608af434e3497c2215b8e55940 Mon Sep 17 00:00:00 2001 From: Ismoh <12631485+Ismoh@users.noreply.github.com> Date: Mon, 13 Oct 2025 16:44:02 +0200 Subject: [PATCH 06/26] chore: fix missing CHANGELOG.md changes --- CHANGELOG.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index a229b4d..9f7b57c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## Version 0.4.0 + +- feat: add GitHub action for easier release creation \ + Refs: [#14](https://github.com/Ismoh/local-lua-debugger-vscode/issues/14) + ## Version 0.3.9 - fix: [#25](https://github.com/Ismoh/local-lua-debugger-vscode/issues/25): Change the error wrapper to pass the original error intact ([#26](https://github.com/Ismoh/local-lua-debugger-vscode/pull/26)) From 62e3887b13d8e6e39a70be5f0c01e34e49e7fd2a Mon Sep 17 00:00:00 2001 From: Ismoh <12631485+Ismoh@users.noreply.github.com> Date: Mon, 13 Oct 2025 16:56:23 +0200 Subject: [PATCH 07/26] chore: fix git diff compared to master --- .github/workflows/release-tag.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release-tag.yml b/.github/workflows/release-tag.yml index 5f1a1ee..f7649b6 100644 --- a/.github/workflows/release-tag.yml +++ b/.github/workflows/release-tag.yml @@ -10,7 +10,7 @@ jobs: ref: ${{ github.ref }} - name: Bump version run: | - if git diff --quiet CHANGELOG.md; then + if git diff --exit-code master..HEAD CHANGELOG.md; then message='Unable to find actual changes in CHANGELOG.md. Do proper changes and rerun this job!' echo "::error file={name},line={line},endLine={endLine},title={title}::${message}" exit 1 From 9647f9385b8fd21425107f82dd3de0667b0e2b4b Mon Sep 17 00:00:00 2001 From: Ismoh <12631485+Ismoh@users.noreply.github.com> Date: Mon, 13 Oct 2025 16:57:56 +0200 Subject: [PATCH 08/26] chore: fix git diff compared to master --- .github/workflows/release-tag.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release-tag.yml b/.github/workflows/release-tag.yml index f7649b6..a6bd9c3 100644 --- a/.github/workflows/release-tag.yml +++ b/.github/workflows/release-tag.yml @@ -10,7 +10,7 @@ jobs: ref: ${{ github.ref }} - name: Bump version run: | - if git diff --exit-code master..HEAD CHANGELOG.md; then + if git diff --exit-code master -- CHANGELOG.md; then message='Unable to find actual changes in CHANGELOG.md. Do proper changes and rerun this job!' echo "::error file={name},line={line},endLine={endLine},title={title}::${message}" exit 1 From fd3bc2cefcf5745056d5b59491667190db3ef13e Mon Sep 17 00:00:00 2001 From: Ismoh <12631485+Ismoh@users.noreply.github.com> Date: Mon, 13 Oct 2025 16:58:34 +0200 Subject: [PATCH 09/26] chore: add log for testing --- .github/workflows/release-tag.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/release-tag.yml b/.github/workflows/release-tag.yml index a6bd9c3..d2c68fd 100644 --- a/.github/workflows/release-tag.yml +++ b/.github/workflows/release-tag.yml @@ -21,6 +21,8 @@ jobs: msgs=$(git log --oneline $(git describe --tags --abbrev=0)..HEAD) + echo ${msgs,,} + if [[ ${msgs,,} =~ ^(fix|refactoring) ]]; then npm --no-git-tag-version version patch else From 773b20b5b8ba5cb92650515bfe4a9f6c3b337574 Mon Sep 17 00:00:00 2001 From: Ismoh <12631485+Ismoh@users.noreply.github.com> Date: Mon, 13 Oct 2025 17:01:51 +0200 Subject: [PATCH 10/26] chore: add fetch all to git checkout action --- .github/workflows/release-tag.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/release-tag.yml b/.github/workflows/release-tag.yml index d2c68fd..f2a804f 100644 --- a/.github/workflows/release-tag.yml +++ b/.github/workflows/release-tag.yml @@ -8,6 +8,8 @@ jobs: - uses: actions/checkout@master with: ref: ${{ github.ref }} + fetch-depth: 0 + fetch-tags: true - name: Bump version run: | if git diff --exit-code master -- CHANGELOG.md; then From 9cb8a92aa1da0a10fb28e40d4a12575cb86b3006 Mon Sep 17 00:00:00 2001 From: Ismoh <12631485+Ismoh@users.noreply.github.com> Date: Mon, 13 Oct 2025 17:40:04 +0200 Subject: [PATCH 11/26] chore: fix GitHub action workflow --- .github/workflows/release-tag-bump-version.sh | 35 +++++++++++ .github/workflows/release-tag.yml | 58 +++++++------------ package.json | 4 +- 3 files changed, 57 insertions(+), 40 deletions(-) create mode 100644 .github/workflows/release-tag-bump-version.sh diff --git a/.github/workflows/release-tag-bump-version.sh b/.github/workflows/release-tag-bump-version.sh new file mode 100644 index 0000000..cbf87fc --- /dev/null +++ b/.github/workflows/release-tag-bump-version.sh @@ -0,0 +1,35 @@ +prevVer=$(node -p "require('./package.json').version") +echo "Current version: $prevVer" + +msgs=$(git log --oneline $(git describe --tags --abbrev=0)..HEAD) + +#echo ${msgs,,} + +if [[ ${msgs,,} =~ (fix:|refactoring:) ]]; then + echo "--> Bump patch version to " + npm --no-git-tag-version version patch +#else +# echo "no 'fix:' or 'refactoring:' commit message found.." +fi + +if [[ ${msgs,,} =~ feat: ]]; then + echo "--> Bump minor version to " + npm --no-git-tag-version version minor +#else +# echo "no 'feat:' commit meassage found.." +fi + +if [[ ${msgs,,} =~ (breaking change:|!:) ]]; then + echo "--> Bump major version to " + npm --no-git-tag-version version major +#else +# echo "no 'BREAKING CHANGE' or '!' found.." +fi + +newVer=$(node -p "require('./package.json').version") + +if [[ "$prevVer" == "$newVer" ]]; then + message="Unable to find actual version changes. Did you use proper conventional commit messages? Available types/scopes: 'fix:', 'refactoring:', 'feat:', 'breaking changes:' or '!:'" + echo "::error file={name},line={line},endLine={endLine},title={title}::${message}" + exit 1 +fi diff --git a/.github/workflows/release-tag.yml b/.github/workflows/release-tag.yml index f2a804f..a074366 100644 --- a/.github/workflows/release-tag.yml +++ b/.github/workflows/release-tag.yml @@ -10,49 +10,31 @@ jobs: ref: ${{ github.ref }} fetch-depth: 0 fetch-tags: true - - name: Bump version + - name: Check manual changes on CHANGELOG.md run: | - if git diff --exit-code master -- CHANGELOG.md; then - message='Unable to find actual changes in CHANGELOG.md. Do proper changes and rerun this job!' - echo "::error file={name},line={line},endLine={endLine},title={title}::${message}" - exit 1 + if git diff --exit-code origin/master -- CHANGELOG.md; then + message='Unable to find actual changes in CHANGELOG.md. Do proper changes and rerun this job!' + echo "::error file={name},line={line},endLine={endLine},title={title}::${message}" + exit 1 fi - prevVer=$(node -p "require('./package.json').version") - echo "Current version: $prevVer" - - msgs=$(git log --oneline $(git describe --tags --abbrev=0)..HEAD) - - echo ${msgs,,} - - if [[ ${msgs,,} =~ ^(fix|refactoring) ]]; then - npm --no-git-tag-version version patch - else - echo "no 'fix' or 'refactoring' commit message found.." - fi + - name: Bump version + run: .github/workflows/release-tag-bump-version.sh + - if [[ ${msgs,,} =~ ^(feat) ]]; then - npm --no-git-tag-version version minor - else - echo "no 'feat' commit meassage found.." - fi + - name: clean + run: rm debugger/*.lua; rm debugger/*.lua.map; rm extension/*.js; rm extension/*.js.map; rm *.vsix - if [[ ${msgs,,} =~ ^(breaking change|!) ]]; then - npm --no-git-tag-version version patch - else - echo "no 'BREAKING CHANGE' or '!' found.." - fi + - name: npm run lint + run: npm run lint - newVer=$(node -p "require('./package.json').version") + - name: npm run build + run: npm run build - if [[ "$prevVer" == "$newVer" ]]; then - message='Unable to find actual version changes. Did you use proper conventional commit messages?' - echo "::error file={name},line={line},endLine={endLine},title={title}::${message}" - exit 1 - fi + - name: npm run bundle + run: npm bundle - #clean - rm debugger/*.lua; rm debugger/*.lua.map; rm extension/*.js; rm extension/*.js.map; rm *.vsix - npm lint - npm build - npm bundle + - uses: actions/upload-artifact@v4 + with: + name: vsix + path: second-local-lua-debugger-vscode-*.vsix \ No newline at end of file diff --git a/package.json b/package.json index 4de0f45..0a96da2 100644 --- a/package.json +++ b/package.json @@ -25,8 +25,8 @@ "corona" ], "scripts": { - "lint-debugger": "cd debugger && eslint . && cd ..", - "lint-extension": "cd extension && eslint . && cd ..", + "lint-debugger": "cd debugger && eslint . --fix && cd ..", + "lint-extension": "cd extension && eslint . --fix && cd ..", "lint": "npm run lint-debugger && npm run lint-extension", "build-debugger": "tstl -p debugger", "build-extension": "tsc -p extension", From 48774a871460e1e2435dfa3dd90efd87ecfcda91 Mon Sep 17 00:00:00 2001 From: Ismoh <12631485+Ismoh@users.noreply.github.com> Date: Mon, 13 Oct 2025 17:43:38 +0200 Subject: [PATCH 12/26] chore: make script executable --- .github/workflows/release-tag-bump-version.sh | 0 1 file changed, 0 insertions(+), 0 deletions(-) mode change 100644 => 100755 .github/workflows/release-tag-bump-version.sh diff --git a/.github/workflows/release-tag-bump-version.sh b/.github/workflows/release-tag-bump-version.sh old mode 100644 new mode 100755 From 0a833f76594e93612a37c00a46c1ff27f4acd81f Mon Sep 17 00:00:00 2001 From: Ismoh <12631485+Ismoh@users.noreply.github.com> Date: Mon, 13 Oct 2025 17:45:32 +0200 Subject: [PATCH 13/26] chore: fix rm by ignoring missing files --- .github/workflows/release-tag.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release-tag.yml b/.github/workflows/release-tag.yml index a074366..4e1e19e 100644 --- a/.github/workflows/release-tag.yml +++ b/.github/workflows/release-tag.yml @@ -23,7 +23,7 @@ jobs: - name: clean - run: rm debugger/*.lua; rm debugger/*.lua.map; rm extension/*.js; rm extension/*.js.map; rm *.vsix + run: rm -f debugger/*.lua; rm -f debugger/*.lua.map; rm -f extension/*.js; rm -f extension/*.js.map; rm -f *.vsix - name: npm run lint run: npm run lint From defce7d7b738d0a2399696011a835063369ab902 Mon Sep 17 00:00:00 2001 From: Ismoh <12631485+Ismoh@users.noreply.github.com> Date: Mon, 13 Oct 2025 17:48:17 +0200 Subject: [PATCH 14/26] chore: add installation of missing eslint --- .github/workflows/release-tag.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release-tag.yml b/.github/workflows/release-tag.yml index 4e1e19e..ae5d068 100644 --- a/.github/workflows/release-tag.yml +++ b/.github/workflows/release-tag.yml @@ -10,6 +10,10 @@ jobs: ref: ${{ github.ref }} fetch-depth: 0 fetch-tags: true + + - name: Install vsce + run: npm install -g eslint + - name: Check manual changes on CHANGELOG.md run: | if git diff --exit-code origin/master -- CHANGELOG.md; then @@ -20,7 +24,6 @@ jobs: - name: Bump version run: .github/workflows/release-tag-bump-version.sh - - name: clean run: rm -f debugger/*.lua; rm -f debugger/*.lua.map; rm -f extension/*.js; rm -f extension/*.js.map; rm -f *.vsix From f0ffc5145225905089d8488a4c6b573dee0ef7ce Mon Sep 17 00:00:00 2001 From: Ismoh <12631485+Ismoh@users.noreply.github.com> Date: Mon, 13 Oct 2025 17:50:21 +0200 Subject: [PATCH 15/26] chore: add missing npm install command --- .github/workflows/release-tag.yml | 5 ++++- .github/workflows/vsce-publish.yml | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release-tag.yml b/.github/workflows/release-tag.yml index ae5d068..489c314 100644 --- a/.github/workflows/release-tag.yml +++ b/.github/workflows/release-tag.yml @@ -11,9 +11,12 @@ jobs: fetch-depth: 0 fetch-tags: true - - name: Install vsce + - name: Install npm eslint run: npm install -g eslint + - name: npm install packages + run: npm install + - name: Check manual changes on CHANGELOG.md run: | if git diff --exit-code origin/master -- CHANGELOG.md; then diff --git a/.github/workflows/vsce-publish.yml b/.github/workflows/vsce-publish.yml index c5d1ce9..6f4bf86 100644 --- a/.github/workflows/vsce-publish.yml +++ b/.github/workflows/vsce-publish.yml @@ -10,9 +10,12 @@ jobs: steps: - name: Checkout uses: actions/checkout@v4 + - name: Install vsce run: npm install -g @vscode/vsce - - name: Install npm + + - name: npm install packages run: npm install + - name: Publish to VSCode Marketplace run: npm run bundle && vsce publish -p ${{ secrets.AZURE_PAT }} \ No newline at end of file From 620bcb863e30feaffdf8dad6ca482702a91c016a Mon Sep 17 00:00:00 2001 From: Ismoh <12631485+Ismoh@users.noreply.github.com> Date: Mon, 13 Oct 2025 17:52:56 +0200 Subject: [PATCH 16/26] chore: clean npm commands --- .github/workflows/release-tag.yml | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/.github/workflows/release-tag.yml b/.github/workflows/release-tag.yml index 489c314..710e339 100644 --- a/.github/workflows/release-tag.yml +++ b/.github/workflows/release-tag.yml @@ -31,14 +31,8 @@ jobs: - name: clean run: rm -f debugger/*.lua; rm -f debugger/*.lua.map; rm -f extension/*.js; rm -f extension/*.js.map; rm -f *.vsix - - name: npm run lint - run: npm run lint - - - name: npm run build - run: npm run build - - - name: npm run bundle - run: npm bundle + - name: npm run lint, build and vsce package within npm run bundle + run: npm run bundle - uses: actions/upload-artifact@v4 with: From 718d365074c3844b63aea6c66251fe9240c5a15e Mon Sep 17 00:00:00 2001 From: Ismoh <12631485+Ismoh@users.noreply.github.com> Date: Mon, 13 Oct 2025 17:59:29 +0200 Subject: [PATCH 17/26] chore: add proper artifact name --- .github/workflows/release-tag.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release-tag.yml b/.github/workflows/release-tag.yml index 710e339..d46b0e8 100644 --- a/.github/workflows/release-tag.yml +++ b/.github/workflows/release-tag.yml @@ -34,7 +34,11 @@ jobs: - name: npm run lint, build and vsce package within npm run bundle run: npm run bundle + - name: Provide proper artifact name + run: | + echo "artifact_name=$(find second-local-lua-debugger-vscode-*)" >> GITHUB_ENV + - uses: actions/upload-artifact@v4 with: - name: vsix - path: second-local-lua-debugger-vscode-*.vsix \ No newline at end of file + name: ${{ env.artifact_name }} + path: ${{ env.artifact_name }} \ No newline at end of file From 84050def5f949a8052d3babd2e6fada08ed5dc4f Mon Sep 17 00:00:00 2001 From: Ismoh <12631485+Ismoh@users.noreply.github.com> Date: Mon, 13 Oct 2025 18:01:37 +0200 Subject: [PATCH 18/26] chore: fix artifact path --- .github/workflows/release-tag.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release-tag.yml b/.github/workflows/release-tag.yml index d46b0e8..0707a89 100644 --- a/.github/workflows/release-tag.yml +++ b/.github/workflows/release-tag.yml @@ -41,4 +41,4 @@ jobs: - uses: actions/upload-artifact@v4 with: name: ${{ env.artifact_name }} - path: ${{ env.artifact_name }} \ No newline at end of file + path: second-local-lua-debugger-vscode-*.vsix \ No newline at end of file From 891fb4c93d78c852cbd9787394002fce4b24510e Mon Sep 17 00:00:00 2001 From: Ismoh <12631485+Ismoh@users.noreply.github.com> Date: Mon, 13 Oct 2025 18:03:53 +0200 Subject: [PATCH 19/26] chore: fix env declaration --- .github/workflows/release-tag.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release-tag.yml b/.github/workflows/release-tag.yml index 0707a89..0273941 100644 --- a/.github/workflows/release-tag.yml +++ b/.github/workflows/release-tag.yml @@ -36,7 +36,7 @@ jobs: - name: Provide proper artifact name run: | - echo "artifact_name=$(find second-local-lua-debugger-vscode-*)" >> GITHUB_ENV + echo "artifact_name=$(find second-local-lua-debugger-vscode-*)" >> $GITHUB_ENV - uses: actions/upload-artifact@v4 with: From bff6cefcf2cfa7ae3d6195bd8716058d94356c4b Mon Sep 17 00:00:00 2001 From: Ismoh <12631485+Ismoh@users.noreply.github.com> Date: Mon, 13 Oct 2025 18:09:09 +0200 Subject: [PATCH 20/26] chore: add creating git tag --- .github/workflows/release-tag.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/release-tag.yml b/.github/workflows/release-tag.yml index 0273941..bf2822f 100644 --- a/.github/workflows/release-tag.yml +++ b/.github/workflows/release-tag.yml @@ -38,6 +38,11 @@ jobs: run: | echo "artifact_name=$(find second-local-lua-debugger-vscode-*)" >> $GITHUB_ENV + - name: Create and push new release tag + run: | + releaseVer=$(node -p "require('./package.json').version") + git tag -a ${releaseVer} -m 'Bump new release version ${releaseVer} before publish'; git push origin ${releaseVer}; git push origin --tags + - uses: actions/upload-artifact@v4 with: name: ${{ env.artifact_name }} From cad4fac5b44565a61061539e65709b5d099f8a08 Mon Sep 17 00:00:00 2001 From: Ismoh <12631485+Ismoh@users.noreply.github.com> Date: Mon, 13 Oct 2025 18:15:14 +0200 Subject: [PATCH 21/26] chore: fix git who am i --- .github/workflows/release-tag.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/release-tag.yml b/.github/workflows/release-tag.yml index bf2822f..15e17f4 100644 --- a/.github/workflows/release-tag.yml +++ b/.github/workflows/release-tag.yml @@ -40,6 +40,8 @@ jobs: - name: Create and push new release tag run: | + git config user.email "41898282+github-actions[bot]@users.noreply.github.com" + git config user.name "github-actions[bot]" releaseVer=$(node -p "require('./package.json').version") git tag -a ${releaseVer} -m 'Bump new release version ${releaseVer} before publish'; git push origin ${releaseVer}; git push origin --tags From 479cf5c911d5d518c6591c88d7ae66349e5f58b0 Mon Sep 17 00:00:00 2001 From: Ismoh <12631485+Ismoh@users.noreply.github.com> Date: Mon, 13 Oct 2025 18:20:52 +0200 Subject: [PATCH 22/26] chore: fix version variable for pushing tags --- .github/workflows/release-tag.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release-tag.yml b/.github/workflows/release-tag.yml index 15e17f4..0c6fb70 100644 --- a/.github/workflows/release-tag.yml +++ b/.github/workflows/release-tag.yml @@ -43,7 +43,7 @@ jobs: git config user.email "41898282+github-actions[bot]@users.noreply.github.com" git config user.name "github-actions[bot]" releaseVer=$(node -p "require('./package.json').version") - git tag -a ${releaseVer} -m 'Bump new release version ${releaseVer} before publish'; git push origin ${releaseVer}; git push origin --tags + git tag -a v$releaseVer -m 'Bump new release version v$releaseVer before publish'; git push origin v$releaseVer; git push origin --tags - uses: actions/upload-artifact@v4 with: From 78c01f319bd2cfe2caf224afd0358765fcc9f7de Mon Sep 17 00:00:00 2001 From: Ismoh <12631485+Ismoh@users.noreply.github.com> Date: Mon, 13 Oct 2025 18:26:07 +0200 Subject: [PATCH 23/26] chore: fix version variable for pushing tags --- .github/workflows/release-tag.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release-tag.yml b/.github/workflows/release-tag.yml index 0c6fb70..838caf9 100644 --- a/.github/workflows/release-tag.yml +++ b/.github/workflows/release-tag.yml @@ -43,7 +43,7 @@ jobs: git config user.email "41898282+github-actions[bot]@users.noreply.github.com" git config user.name "github-actions[bot]" releaseVer=$(node -p "require('./package.json').version") - git tag -a v$releaseVer -m 'Bump new release version v$releaseVer before publish'; git push origin v$releaseVer; git push origin --tags + git tag -a release-v$releaseVer -m 'Bump new release version release-v$releaseVer before publish'; git push origin release-v$releaseVer; git push origin --tags - uses: actions/upload-artifact@v4 with: From aed27bdce2c97a6f78f508e062350cda4ba28a3f Mon Sep 17 00:00:00 2001 From: Ismoh <12631485+Ismoh@users.noreply.github.com> Date: Mon, 13 Oct 2025 19:46:14 +0200 Subject: [PATCH 24/26] chore: fix CHANGELOG.md changes check --- .github/workflows/release-tag-bump-version.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/release-tag-bump-version.sh b/.github/workflows/release-tag-bump-version.sh index cbf87fc..6203587 100755 --- a/.github/workflows/release-tag-bump-version.sh +++ b/.github/workflows/release-tag-bump-version.sh @@ -33,3 +33,9 @@ if [[ "$prevVer" == "$newVer" ]]; then echo "::error file={name},line={line},endLine={endLine},title={title}::${message}" exit 1 fi + +if [[ $(echo CHANGELOG.md) != *"$newVer"* ]]; then + message='Unable to find actual changes in CHANGELOG.md. Do proper changes and rerun this job!' + echo "::error file={name},line={line},endLine={endLine},title={title}::${message}" + exit 1 echo "no 'fix:' or 'refactoring:' commit message found.." +fi From 500c2343bb001c5cd7d2fd9ce18418f3aafeaeb3 Mon Sep 17 00:00:00 2001 From: Ismoh <12631485+Ismoh@users.noreply.github.com> Date: Mon, 13 Oct 2025 19:54:04 +0200 Subject: [PATCH 25/26] chore: fix CHANGELOG.md changes check --- .github/workflows/release-tag-bump-version.sh | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/release-tag-bump-version.sh b/.github/workflows/release-tag-bump-version.sh index 6203587..e01a4b3 100755 --- a/.github/workflows/release-tag-bump-version.sh +++ b/.github/workflows/release-tag-bump-version.sh @@ -27,15 +27,16 @@ if [[ ${msgs,,} =~ (breaking change:|!:) ]]; then fi newVer=$(node -p "require('./package.json').version") +echo "New version: $newVer" if [[ "$prevVer" == "$newVer" ]]; then message="Unable to find actual version changes. Did you use proper conventional commit messages? Available types/scopes: 'fix:', 'refactoring:', 'feat:', 'breaking changes:' or '!:'" - echo "::error file={name},line={line},endLine={endLine},title={title}::${message}" + echo "::error file=${name},line=${line},endLine=${endLine},title=${title}::${message}" exit 1 fi -if [[ $(echo CHANGELOG.md) != *"$newVer"* ]]; then - message='Unable to find actual changes in CHANGELOG.md. Do proper changes and rerun this job!' - echo "::error file={name},line={line},endLine={endLine},title={title}::${message}" - exit 1 echo "no 'fix:' or 'refactoring:' commit message found.." +if [[ ! "$(cat CHANGELOG.md)" =~ "$newVer" ]]; then + message='Unable to find new version in CHANGELOG.md. Do proper changes and rerun this job!' + echo "::error file=${name},line=${line},endLine=${endLine},title=${title}::${message}" + exit 1 fi From 9415425f35418b4aba2a7a7e9f1254b081f71e24 Mon Sep 17 00:00:00 2001 From: Ismoh <12631485+Ismoh@users.noreply.github.com> Date: Mon, 13 Oct 2025 19:54:31 +0200 Subject: [PATCH 26/26] chore: fix CHANGELOG.md changes check --- .github/workflows/release-tag.yml | 8 -------- 1 file changed, 8 deletions(-) diff --git a/.github/workflows/release-tag.yml b/.github/workflows/release-tag.yml index 838caf9..b41fc91 100644 --- a/.github/workflows/release-tag.yml +++ b/.github/workflows/release-tag.yml @@ -17,14 +17,6 @@ jobs: - name: npm install packages run: npm install - - name: Check manual changes on CHANGELOG.md - run: | - if git diff --exit-code origin/master -- CHANGELOG.md; then - message='Unable to find actual changes in CHANGELOG.md. Do proper changes and rerun this job!' - echo "::error file={name},line={line},endLine={endLine},title={title}::${message}" - exit 1 - fi - - name: Bump version run: .github/workflows/release-tag-bump-version.sh