chore(cli): swap yarn to bun #531
Workflow file for this run
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: Lint | |
on: | |
pull_request: | |
branches: | |
- master | |
- next | |
push: | |
branches: | |
- master | |
- next | |
concurrency: | |
group: ${{ github.ref }}-js | |
cancel-in-progress: true | |
jobs: | |
install-dependencies: | |
name: Install dependencies | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Set up Bun | |
uses: oven-sh/setup-bun@v2 | |
- name: Install dependencies | |
uses: ./.github/actions/install-dependencies | |
verify-package-source: | |
name: Lint package | |
runs-on: ubuntu-latest | |
needs: install-dependencies | |
steps: | |
- name: Set up Bun | |
uses: oven-sh/setup-bun@v2 | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Pull dependencies | |
uses: actions/cache@v4 | |
with: | |
path: ./node_modules | |
key: ${{ hashFiles('./package.json') }} | |
- name: Pull example node modules | |
id: cache-example-npm | |
uses: actions/cache@v4 | |
env: | |
cache-name: cached-example-npm-deps | |
with: | |
path: example/node_modules | |
key: ${{ hashFiles('./example/bun.lockb') }}-${{ hashFiles('./bun.lockb') }} | |
- name: Lint files | |
run: bun run lint | |
- name: Typecheck files | |
run: bun run typescript | |
- name: Build package | |
run: bun run prepare |