Skip to content

Commit

Permalink
chore: convert build workflow to use yarn
Browse files Browse the repository at this point in the history
  • Loading branch information
TheOrangePuff committed Nov 14, 2024
1 parent faa6d7a commit 59d52fe
Showing 1 changed file with 21 additions and 11 deletions.
32 changes: 21 additions & 11 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,26 @@ on: [pull_request]

jobs:
build:
name: 🏭 Build all packages
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
ref: ${{ github.event.release.target_commitish }}
- name: Use Node.js 20
uses: actions/setup-node@v1
with:
node-version: 20
registry-url: https://registry.npmjs.org/
- run: npm ci
- run: npm run lint:check && npm run format:check
- run: npm run build
- name: Checkout Repository
uses: actions/checkout@v4
with:
fetch-depth: 1

- name: Enable Corepack
run: corepack enable

- uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
cache: 'yarn'

- name: Install
run: yarn install

- name: Build all packages
run: yarn build

- run: yarn lint:check && yarn format:check

0 comments on commit 59d52fe

Please sign in to comment.