Skip to content

Commit

Permalink
Update nightly-version.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
lhstrh committed Oct 9, 2024
1 parent 788be37 commit ed67db2
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions .github/scripts/nightly-version.sh
Original file line number Diff line number Diff line change
@@ -1,13 +1,9 @@
#!/bin/bash

# Set a new version number based on the next minor version,
# combined with a patch version based on the current date.
npm version minor --no-git-tag-version > /dev/null 2>&1
version=$(echo "$(npm pkg get version)" | tr -d '"')
date=$(date +%Y%m%d)

# NOTE: the following assumes that only simple
# major.minor.patch version numbers are being used.
# Determine a new version number by using the current date as a patch number
# (the following assumes that only major.minor.patch version numbers are used).
nightly="${version%.*}.$date"
npm version $nightly --no-git-tag-version

Expand Down

0 comments on commit ed67db2

Please sign in to comment.