Skip to content

ci: add npm publish workflow #2

ci: add npm publish workflow

ci: add npm publish workflow #2

Workflow file for this run

# This workflow will run tests using node and build the code on push or pull request events but only for the main branch
name: Node.js
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
test:
name: Test
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [ 24.x ]
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Dependencies
run: npm install
- name: Lint
run: npm run lint
- name: Test
run: npm test
env:
CI: true
- name: Build
run: npm run build