mermaid/.github/workflows/build.yml

46 lines
865 B
YAML
Raw Normal View History

2019-11-03 15:18:37 +01:00
name: Build
on:
push: {}
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:
build:
runs-on: ubuntu-latest
strategy:
matrix:
2021-07-15 10:22:33 +02:00
node-version: [16.x]
2019-11-03 15:18:37 +01:00
steps:
2022-09-04 21:30:47 +02:00
- uses: actions/checkout@v3
- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
cache: yarn
node-version: ${{ matrix.node-version }}
- name: Install Yarn
run: npm i yarn --global
- name: Install Packages
run: |
yarn install --frozen-lockfile
env:
CYPRESS_CACHE_FOLDER: .cache/Cypress
- name: Run Build
run: yarn build
- name: Upload Build as Artifact
uses: actions/upload-artifact@v3
with:
name: dist
path: dist