Skip to content

Commit 2ea9388

Browse files
committed
Fix npm publish logic for master branch in nightly workflow
1 parent 115db53 commit 2ea9388

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

.github/workflows/nightly.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -184,10 +184,9 @@ jobs:
184184
TIMESTAMP=$(date +"%Y%m%d%H%M")
185185
npm version prerelease --preid="$TIMESTAMP"
186186
npm publish --tag staging --access public
187-
# Not updating automatically the version since this would make the staging branch diverge from the main branch
188-
#elif [ "${{ github.ref }}" == "refs/heads/master" ]; then
189-
# echo "Publishing from main, assumes version was changed before publishing"
190-
# npm publish
187+
elif [ "${{ github.ref }}" == "refs/heads/master" ]; then
188+
echo "Publishing from main, assumes version was changed before publishing"
189+
npm publish
191190
else
192191
echo "Not master or staging branches, not publishing even if it is a push event"
193192
fi

0 commit comments

Comments
 (0)