Skip to content

Commit 94e2f9b

Browse files
authored
Merge pull request #525 from ExperienceLovelace/cicd/tweak_docs_workflows
Skip docs build if non-final version
2 parents bb24bd7 + 96b5294 commit 94e2f9b

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/push-master-build-docs-floorplan-examples.yml renamed to .github/workflows/build-docs-floorplan.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,14 @@ jobs:
3030
with:
3131
node-version: ${{ matrix.node-version }}
3232

33+
- name: Check package version
34+
run: |
35+
PACKAGE_VERSION=$(node -p "require('./package.json').version")
36+
if [[ "$PACKAGE_VERSION" == *-* ]]; then
37+
echo "Non-final version detected ($PACKAGE_VERSION). Skipping build."
38+
exit 0
39+
fi
40+
3341
- run: npm ci
3442

3543
- run: npm run build

0 commit comments

Comments
 (0)