mermaid/.github/workflows/build.yml

50 lines
1.0 KiB
YAML
Raw Normal View History

2019-11-03 15:18:37 +01:00
name: Build
on:
push: {}
2023-07-02 06:33:31 +02:00
merge_group:
pull_request:
types:
- opened
- synchronize
- ready_for_review
2019-11-03 15:18:37 +01:00
permissions:
contents: read
2019-11-03 15:18:37 +01:00
jobs:
2023-07-02 06:44:35 +02:00
build-mermaid:
2019-11-03 15:18:37 +01:00
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
2022-09-04 21:30:47 +02:00
- uses: pnpm/action-setup@v2
# uses version from "packageManager" field in package.json
- name: Setup Node.js
uses: actions/setup-node@v4
2022-09-04 21:30:47 +02:00
with:
cache: pnpm
node-version-file: '.node-version'
2022-09-04 21:30:47 +02:00
- name: Install Packages
run: |
pnpm install --frozen-lockfile
2022-09-04 21:30:47 +02:00
env:
CYPRESS_CACHE_FOLDER: .cache/Cypress
- name: Run Build
run: pnpm run build
- name: Upload Mermaid Build as Artifact
uses: actions/upload-artifact@v3
with:
name: mermaid-build
path: packages/mermaid/dist
2022-09-04 21:30:47 +02:00
- name: Upload Mermaid Mindmap Build as Artifact
2022-09-04 21:30:47 +02:00
uses: actions/upload-artifact@v3
with:
name: mermaid-mindmap-build
path: packages/mermaid-mindmap/dist