Skip to content

Commit

Permalink
ci: replace ci yarn to pnpm
Browse files Browse the repository at this point in the history
  • Loading branch information
luizmuraro committed Oct 2, 2024
1 parent 65c9187 commit 53f95c6
Showing 1 changed file with 23 additions and 9 deletions.
32 changes: 23 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,32 @@ jobs:
- uses: actions/checkout@v3

- uses: actions/setup-node@v3
with:
node-version: "22"

- name: Run install
uses: borales/actions-yarn@v4
- name: Install pnpm
uses: pnpm/action-setup@v2
with:
cmd: install
version: 9

- name: Build production bundle
uses: borales/actions-yarn@v4
- 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:
cmd: build
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

- name: Build production bundle
run: pnpm build

- name: Test the app
uses: borales/actions-yarn@v4
with:
cmd: test
run: pnpm test

0 comments on commit 53f95c6

Please sign in to comment.