Skip to content

add support to custom package.json install and watch. #859

add support to custom package.json install and watch.

add support to custom package.json install and watch. #859

Workflow file for this run

name: NPM Test
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || (github.ref == 'refs/heads/main' && github.sha) || github.ref }}
cancel-in-progress: true
on:
push:
branches-ignore:
- 'dependabot/**'
pull_request:
types: [closed, opened, synchronize, reopened]
branches:
- '*'
jobs:
build:
if: >-
github.event.action != 'closed'
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
node-version: [16.x, 18.x]
generator-version: ['']
include:
- os: ubuntu-latest
node-version: 16.x
generator-version: '2.0.5'
- os: ubuntu-latest
node-version: 16.x
generator-version: '^4'
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: npm install -g npm@^8
if: matrix.node-version == '14.x'
- run: npm ci
- run: npm install yeoman-generator@${{ matrix.generator-version }}
if: matrix.generator-version != ''
- run: npm test
env:
CI: true