Skip to content

Merge pull request #11 from northscaler/dj-update-node #3

Merge pull request #11 from northscaler/dj-update-node

Merge pull request #11 from northscaler/dj-update-node #3

on:
# Trigger analysis when pushing in master or pull requests, and when creating
# a pull request.
push:
branches:
- master
pull_request:
types: [opened, synchronize, reopened]
name: Main Workflow
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node: [ 16.20.2, 18.18.0 ]
scope: [ '@northscaler' ]
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Use Node.js
uses: actions/setup-node@v3
with:
always-auth: true
node-version: ${{ matrix.node }}
registry-url: 'https://registry.npmjs.org'
scope: ${{ matrix.scope }}
- name: Cache node modules
uses: actions/cache@v3
env:
cache-name: cache-node-modules
with:
# npm cache files are stored in `~/.npm` on Linux/macOS
path: ~/.npm
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- run: npm run build
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
CI: true