Skip to content

fix: use prepublishOnly and explicit build in pretest #194

fix: use prepublishOnly and explicit build in pretest

fix: use prepublishOnly and explicit build in pretest #194

Workflow file for this run

name: test
on: [push, pull_request]
jobs:
test:
name: "Test on Node.js ${{ matrix.node-version }}"
runs-on: ubuntu-latest
permissions:
contents: read
strategy:
matrix:
node-version: [ 18, 20, 22 ]
steps:
- name: checkout
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
with:
persist-credentials: false
- name: Install pnpm
uses: pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061 # v4.2.0
- name: setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0
with:
node-version: ${{ matrix.node-version }}
- name: Install
run: pnpm install
- name: Test
run: pnpm test