Skip to content

CI: add npm Trusted Publisher workflows (#18) #59

CI: add npm Trusted Publisher workflows (#18)

CI: add npm Trusted Publisher workflows (#18) #59

Workflow file for this run

name: test
on: [push, pull_request]
env:
CI: true
permissions:
contents: read
jobs:
test:
name: "Test on Node.js ${{ matrix.node-version }}"
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [ 16, 18 ]
steps:
- name: checkout
uses: actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5 # v2.7.0
with:
persist-credentials: false
- name: setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@f1f314fca9dfce2769ece7d933488f076716723e # v1.4.6
with:
node-version: ${{ matrix.node-version }}
- name: Install
run: yarn install
- name: Test
run: yarn run build