Skip to content

CI: add npm Trusted Publisher workflows and security configuration #31

CI: add npm Trusted Publisher workflows and security configuration

CI: add npm Trusted Publisher workflows and security configuration #31

Workflow file for this run

name: test
on: [push, pull_request]
permissions:
contents: read
jobs:
test:
name: "Test on Node.js ${{ matrix.node-version }}"
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [ 22, 24 ]
steps:
- name: checkout
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
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@395ad3262231945c25e8478fd5baf05154b1d79f # v6.1.0
with:
cache: "pnpm"
node-version: ${{ matrix.node-version }}
- name: Install
run: pnpm install
- name: Test
run: pnpm test