Skip to content

Commit

Permalink
migrate to pnpm
Browse files Browse the repository at this point in the history
  • Loading branch information
ryota-murakami committed Aug 8, 2023
1 parent 4bfc29b commit c5169bf
Show file tree
Hide file tree
Showing 3 changed files with 2,506 additions and 2,548 deletions.
34 changes: 29 additions & 5 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,33 @@ jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v2-beta
- name: Checkout
uses: actions/checkout@v3

- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: '18.1.0'
- run: yarn install
- run: yarn lint
node-version: 18

- uses: pnpm/action-setup@v2
name: Install pnpm
with:
version: 8
run_install: false

- name: Get pnpm store directory
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
- uses: actions/cache@v3
name: Setup pnpm cache
with:
path: ${{ env.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Install dependencies
run: pnpm install
- run: pnpm lint
Loading

0 comments on commit c5169bf

Please sign in to comment.