Skip to content

Update GitHub Actions workflow to configure npm registry URL before p… #8

Update GitHub Actions workflow to configure npm registry URL before p…

Update GitHub Actions workflow to configure npm registry URL before p… #8

Workflow file for this run

name: Build
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
registry-url: 'https://npm.pkg.github.com'
- name: Install dependencies
run: npm ci
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Lint
run: npm run lint
- name: Build
run: npm run build
- name: Run tests
run: npm test