24 lines
463 B
YAML
24 lines
463 B
YAML
|
name: CI Pipeline
|
||
|
|
||
|
on: [push, pull_request]
|
||
|
|
||
|
jobs:
|
||
|
build:
|
||
|
runs-on: ubuntu-22.04
|
||
|
|
||
|
strategy:
|
||
|
matrix:
|
||
|
node-version: [20.x]
|
||
|
|
||
|
steps:
|
||
|
- uses: actions/checkout@v2
|
||
|
- name: Use Node.js
|
||
|
uses: actions/setup-node@v1
|
||
|
with:
|
||
|
node-version: ${{ matrix.node-version }}
|
||
|
- run: npm run lint
|
||
|
- run: npm run coverage
|
||
|
- run: npm publish
|
||
|
env:
|
||
|
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|