Skip to content
This repository has been archived by the owner on Jan 24, 2024. It is now read-only.

.github/workflows/main.yml #73

.github/workflows/main.yml

.github/workflows/main.yml #73

Workflow file for this run

on: push
jobs:
test:
strategy:
matrix:
os: [windows, macos, ubuntu]
node-version: [18, 20]
runs-on: ${{ matrix.os }}-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- run: npm install-ci-test
npm-publish:
if: startsWith(github.ref, 'refs/tags/v')
needs: test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 20
registry-url: https://registry.npmjs.org/
- run: npm ci && npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}