This repository has been archived by the owner on Oct 26, 2024. It is now read-only.
Merge pull request #30 from cyf/renovate/commitlint-monorepo #33
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build App | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
publish: | |
permissions: | |
contents: write | |
strategy: | |
fail-fast: false | |
matrix: | |
platforms: | |
- 'macos-latest' | |
- 'ubuntu-20.04' | |
- 'windows-latest' | |
runs-on: ${{ matrix.platforms }} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: pnpm/action-setup@v2 | |
with: | |
version: 8 | |
- name: setup node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 18 | |
- name: install dependencies | |
run: pnpm install | |
- name: copy files to @contentlayer/source-files | |
if: matrix.platforms == 'windows-latest' | |
run: | | |
copy fixed_pkg\makeCacheItemFromFilePath.js node_modules\.pnpm\node_modules\@contentlayer\source-files\dist\fetchData\makeCacheItemFromFilePath.js | |
- name: build app | |
run: pnpm build:app |