Upgrade to [email protected]
, add publishing workflow
#98
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
checkout_and_test: | |
name: Lint and test on ${{ matrix.os }} with ${{ matrix.node-version }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-20.04, windows-latest, macOS-latest] | |
node-version: [12, 14, 16] | |
steps: | |
- name: Normalise line-ending handling in Git | |
shell: bash | |
run: | | |
git config --global core.autocrlf false | |
if: runner.os == 'Windows' | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- run: npm ci | |
- run: npm run lint | |
- run: npm test |