Skip to content

Commit

Permalink
misc: allow multiple nightlies to be published in a day (#14767)
Browse files Browse the repository at this point in the history
  • Loading branch information
connorjclark committed Feb 8, 2023
1 parent 017ad4e commit d890413
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions .github/scripts/bump-nightly-version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,15 @@
set -euxo pipefail

DATE=$(date --date=yesterday '+%Y%m%d')
PATCH=$(node -e "console.log(require('./package.json').version)")
node core/scripts/release/bump-versions.js "$PATCH-dev.$DATE"
PKG_VERSION=$(node -e "console.log(require('./package.json').version)")
BASE_VERSION="$PKG_VERSION-dev.$DATE"
VERSION="$BASE_VERSION"

i=0
while npx version-exists@0.0.4 lighthouse "$VERSION"
do
((i++))
VERSION="$BASE_VERSION-$i"
done

node core/scripts/release/bump-versions.js "$VERSION"

0 comments on commit d890413

Please sign in to comment.