Verify release-version on push to release or master

This commit is contained in:
Sidharth Vinod
2023-07-18 21:55:44 +05:30
parent 07df9eeb60
commit fff3acd064
4 changed files with 32 additions and 17 deletions

View File

@@ -1,6 +1,10 @@
name: Build Vitepress docs
on:
push:
branches:
- master
- release/*
pull_request:
merge_group:
@@ -25,5 +29,9 @@ jobs:
- name: Install Packages
run: pnpm install --frozen-lockfile
- name: Verify release verion
if: ${{ github.event_name == 'push' && (github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/heads/release')) }}
run: pnpm --filter mermaid run docs:verify-version
- name: Run Build
run: pnpm --filter mermaid run docs:build:vitepress

View File

@@ -36,19 +36,6 @@ jobs:
- name: Install Packages
run: pnpm install --frozen-lockfile
- name: Update release verion
run: |
pnpm --filter mermaid run docs:release-version
pnpm --filter mermaid run docs:build
- name: Commit changes
uses: EndBug/add-and-commit@v9
with:
add: '["docs", "packages/mermaid/src/docs"]'
author_name: ${{ github.actor }}
author_email: ${{ github.actor }}@users.noreply.github.com
message: 'chore: Update MERMAID_RELEASE_VERSION in docs'
- name: Setup Pages
uses: actions/configure-pages@v3