diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index a6d8c635..0ed2580c 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -210,7 +210,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 @@ -221,10 +221,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 diff --git a/Lara-JS/package.json b/Lara-JS/package.json index 86ad9533..6251d5b7 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": {