Skip to content

chore(ci): add release and publish to npm ci action #2

chore(ci): add release and publish to npm ci action

chore(ci): add release and publish to npm ci action #2

Workflow file for this run

name: Unit Tests
on:
pull_request:
release:
types: [published]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '18.17'
- name: use pnpm
uses: pnpm/action-setup@v2
with:
version: 8
- name: Cache pnpm modules
uses: actions/cache@v3
with:
path: ~/.pnpm-store
key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-
- name: Install dependencies
run: pnpm install
- name: Run tests
run: pnpm run test