Skip to content

Commit

Permalink
ci(build): fix build CI to use pnpm
Browse files Browse the repository at this point in the history
The packages/mermaid/dist build is now uploaded seperately from
the packages/mermaid-mindmap/dist build.
  • Loading branch information
aloisklink committed Sep 25, 2022
1 parent e72059b commit e0805b8
Showing 1 changed file with 15 additions and 9 deletions.
24 changes: 15 additions & 9 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,26 +20,32 @@ jobs:
steps:
- uses: actions/checkout@v3

- uses: pnpm/action-setup@v2
# uses version from "packageManager" field in package.json

- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
cache: yarn
cache: pnpm
node-version: ${{ matrix.node-version }}

- name: Install Yarn
run: npm i yarn --global

- name: Install Packages
run: |
yarn install --frozen-lockfile
pnpm install --frozen-lockfile
env:
CYPRESS_CACHE_FOLDER: .cache/Cypress

- name: Run Build
run: yarn build
run: pnpm run build

- name: Upload Mermaid Build as Artifact
uses: actions/upload-artifact@v3
with:
name: mermaid-build
path: packages/mermaid/dist

- name: Upload Build as Artifact
- name: Upload Mermaid Mindmap Build as Artifact
uses: actions/upload-artifact@v3
with:
name: dist
path: dist
name: mermaid-mindmap-build
path: packages/mermaid-mindmap/dist

0 comments on commit e0805b8

Please sign in to comment.