From 115db53e212e9534ca04b756095ae7aa22db578b Mon Sep 17 00:00:00 2001 From: "L. Sousa" Date: Tue, 20 Jan 2026 19:04:06 +0000 Subject: [PATCH 1/3] Bump version to 3.5.1 and update java dependency to ^0.18.0 to support Node.js v24 --- Lara-JS/package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Lara-JS/package.json b/Lara-JS/package.json index 350d26e2..3ff4f117 100644 --- a/Lara-JS/package.json +++ b/Lara-JS/package.json @@ -1,6 +1,6 @@ { "name": "@specs-feup/lara", - "version": "3.5.0", + "version": "3.5.1", "description": "A js port of the popular framework for building source-to-source compilers", "type": "module", "bin": { @@ -64,7 +64,7 @@ "cytoscape": "^3.0.0", "debug": "^4.4.0", "fast-glob": "^3.3.3", - "java": "^0.16.1", + "java": "^0.18.0", "supports-color": "^10.0.0", "yargs": "^17.7.2" }, From 2ea9388c4fad4c74985f1a372c068f5dfffd9ecc Mon Sep 17 00:00:00 2001 From: "L. Sousa" Date: Tue, 20 Jan 2026 19:21:01 +0000 Subject: [PATCH 2/3] Fix npm publish logic for master branch in nightly workflow --- .github/workflows/nightly.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index 631d4093..95de2d67 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -184,10 +184,9 @@ jobs: TIMESTAMP=$(date +"%Y%m%d%H%M") npm version prerelease --preid="$TIMESTAMP" npm publish --tag staging --access public - # Not updating automatically the version since this would make the staging branch diverge from the main branch - #elif [ "${{ github.ref }}" == "refs/heads/master" ]; then - # echo "Publishing from main, assumes version was changed before publishing" - # npm publish + elif [ "${{ github.ref }}" == "refs/heads/master" ]; then + echo "Publishing from main, assumes version was changed before publishing" + npm publish else echo "Not master or staging branches, not publishing even if it is a push event" fi From 8855bd945a97c2b8a41b73c42351acc2e59495f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Bispo?= Date: Thu, 5 Feb 2026 12:10:25 +0000 Subject: [PATCH 3/3] Publishes on npm only when there are pushed (scheduled runs do not publish) --- .github/workflows/nightly.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index 95de2d67..cf7e04b3 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -173,7 +173,7 @@ jobs: # Only on ubuntu-latest - name: Publish JS - if: matrix.os == 'ubuntu-latest' && matrix.node-version == '22.x' + if: github.event_name == 'push' && matrix.os == 'ubuntu-latest' && matrix.node-version == '22.x' run: | cd lara-framework/Lara-JS npm whoami