Skip to content

Commit

Permalink
Update build.yml for GitHub workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
xinchaochen8 authored Apr 14, 2024
1 parent 7c2838e commit b2630c7
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,24 +30,31 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3

- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: "*"

- name: Enable Corepack
run: npm install -g corepack && corepack enable

- uses: actions/cache@v3
with:
path: |
node_modules
*/*/node_modules
/home/runner/.cache/Cypress
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}

- name: Install
run: |
corepack prepare yarn@3.5.0 --activate
yarn set version 3.5.0
yarn --version
yarn install && tsc -v
# --frozen-lockfile
lint-server:
name: Lint Server
runs-on: ubuntu-latest
Expand Down

0 comments on commit b2630c7

Please sign in to comment.