Skip to content

fix(ci): update node matrix to reflect true level of support #211

fix(ci): update node matrix to reflect true level of support

fix(ci): update node matrix to reflect true level of support #211

Workflow file for this run

name: Test + Release
on:
pull_request:
branches:
- master
push:
branch:
- master
jobs:
test:
name: Test Suite
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.x, 18.x, 20.x]
steps:
- name: Checkout
uses: actions/checkout@v2
- name: node ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: install
run: npm install
- name: test
run: npm test
release:
name: release
needs: test
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 14
- run: npm install
- name: Publish
run: npm run release
env:
GITHUB_TOKEN: ${{ secrets.PACKAGES_TOKEN }}
GIT_AUTHOR_NAME: 'Dependant Bot'
GIT_AUTHOR_EMAIL: '[email protected]'
GIT_COMMITTER_NAME: 'Dependant Bot'
GIT_COMMITTER_EMAIL: '[email protected]'
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}