This repository has been archived by the owner on Oct 26, 2024. It is now read-only.
perf: add scripts #7
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 | |
- name: setup node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
- name: install dependencies | |
run: yarn && yarn install:app | |
- name: copy files to @contentlayer/source-files | |
if: matrix.platforms == 'windows-latest' | |
run: | | |
copy fixed_pkg\makeCacheItemFromFilePath.js app\node_modules\@contentlayer\source-files\dist\fetchData\makeCacheItemFromFilePath.js | |
- name: build app | |
run: yarn build:app |