Skip to content

refactor: use pnpm

refactor: use pnpm #8

Workflow file for this run

name: Test Build
on:
pull_request:
jobs:
build:
runs-on: ubuntu-latest
name: Build Pull Request
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: true
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: '20'
- 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 --frozen-lockfile
- name: Build
run: |
yarn build
yarn pack
- name: Upload artifacts
uses: actions/upload-artifact@v3
with:
name: package
path: package.tgz
if-no-files-found: error