Skip to content

Upgrade update-notifier to latest (ESM). #67

Upgrade update-notifier to latest (ESM).

Upgrade update-notifier to latest (ESM). #67

Workflow file for this run

# Node.js CI with yarn
name: Node.js CI
on:
push:
branches:
- '*'
pull_request:
branches:
- '*'
jobs:
run-test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18, 20]
name: Node ${{ matrix.node-version }} test
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- uses: pnpm/action-setup@v2.0.1
name: Install pnpm
id: pnpm-install
with:
version: 8
run_install: false
- name: Get pnpm store directory
id: pnpm-cache
run: |
echo "::set-output name=pnpm_cache_dir::$(pnpm store path)"
- uses: actions/cache@v3
name: Setup pnpm cache
with:
path: ${{ steps.pnpm-cache.outputs.pnpm_cache_dir }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Install dependencies
run: pnpm install
- name: Build project
run: yarn build
# - run: chmod u+x -R dist # Make CLI executable
- name: Run tests
run: yarn test