chore: migrate from yarn berry to pnpm #69
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
# Find unused files, dependencies and exports in JavaScript and TypeScript projects. | |
name: Knip | |
on: | |
workflow_dispatch: | |
pull_request: | |
types: | |
- opened | |
- synchronize | |
jobs: | |
# knip: | |
# name: Knip | |
# runs-on: ubuntu-latest | |
# steps: | |
# - name: Checkout code | |
# uses: actions/checkout@v4 | |
# - name: Set up Node.js | |
# uses: actions/setup-node@v4 | |
# with: | |
# node-version: lts/* | |
# - name: Set up latest Yarn | |
# uses: threeal/setup-yarn-action@v2.0.0 | |
# with: | |
# version: latest | |
# cache: true | |
# - name: Check Knip | |
# continue-on-error: true | |
# run: yarn knip | |
knip: | |
name: Knip | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Set up latest pnpm | |
uses: pnpm/action-setup@v4 | |
with: | |
version: latest | |
- name: Set up Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: lts/* | |
cache: 'pnpm' | |
- name: Install dependencies | |
run: pnpm i | |
- name: Check Knip | |
continue-on-error: true | |
run: yarn knip |