Skip to content

chore: bump examples versions #22

chore: bump examples versions

chore: bump examples versions #22

Workflow file for this run

name: Node.js CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ${{ matrix.os }}
env:
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
TURBO_TEAM: ${{ secrets.TURBO_TEAM }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
node-version: [16.x, 18.x, 20.x]
include:
- os: windows-latest
node-version: 20.x
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
with:
version: 8
run_install: false
- name: Get pnpm store directory
id: pnpm-cache
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
- name: Setup pnpm cache
uses: actions/cache@v3
with:
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('./pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Install and build
run: |
pnpm install --frozen-lockfile --strict-peer-dependencies
pnpm build
- name: ESLint
if: matrix.os == 'ubuntu-latest' && matrix.node-version == '20.x'
run: pnpm turbo run lint
- name: Tests
run: pnpm turbo run test