Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adjustment of version numbers for nightly releases #175

Merged
merged 1 commit into from
Oct 31, 2024
Merged
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
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
Loading