Skip to content

Security Update: Replace npm-check with npm-check-updates #23

Security Update: Replace npm-check with npm-check-updates

Security Update: Replace npm-check with npm-check-updates #23

Workflow file for this run

name: Build and Test
on:
push:
branches: [ main ]
pull_request:
branches: [ main, master ]
permissions:
contents: read
packages: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
registry-url: 'https://registry.npmjs.org'
- name: Install npm dependencies
run: npm ci
- name: Build and Test
run: npm run build
- name: Publish to NPM
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
run: npm run trypublish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}