Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion Lara-JS/package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down
Loading