Skip to content

Build your own AI office with Univer Office SDK. Bring editing, calculation, collaboration, and file processing into your product for people and AI agents. Built on an extensible open-source core.

ci: fix nightly version name (#617)

白熱eadb55843ab2
diff --git a/.github/workflows/release-nightly.yml b/.github/workflows/release-nightly.yml
index 4e1b154983..7682e6e294 100644
--- a/.github/workflows/release-nightly.yml
+++ b/.github/workflows/release-nightly.yml
@@ -47,7 +47,9 @@ jobs:
- name: 📌 Get package version (version + date)
id: nightly-version
run: |
- echo "version=$(node -p "require('./package.json').version")-nightly.$(date +%Y%m%d%H%M)" >> $GITHUB_OUTPUT
+ original_version=$(node -p "require('./package.json').version")
+ version_number=$(echo "$original_version" | sed -E 's/^([0-9]+\.[0-9]+\.[0-9]+).*$/\1/')
+ echo "version=$version_number-nightly.$(date +%Y%m%d%H%M)" >> $GITHUB_OUTPUT
# - name: Create tag
# uses: actions/github-script@v5