Skip to content

More removal of npm #503

More removal of npm

More removal of npm #503

Workflow file for this run

name: NodeCI
on:
workflow_dispatch:
pull_request:
paths-ignore:
- '.github/**'
- 'docs/**'
- 'LICENSE'
- '**/*.md'
- 'Dockerfile'
- 'entrypoint.sh'
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
strategy:
max-parallel: 6
matrix:
node-version: [16.x, 18.x]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
# Use nodejs cache
- name: Cache Node.js modules
uses: actions/cache@v2
with:
# npm cache files are stored in `~/.npm` on Linux/macOS
path: ~/.npm
key: ${{ runner.OS }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.OS }}-node-
${{ runner.OS }}-
# Enable conversion to PDF
- run: sudo sed -i 's/policy domain="coder" rights="none" pattern="PDF"/policy domain="coder" rights="read | write" pattern="PDF"'/ /etc/ImageMagick-6/policy.xml
# Install packages and build
- run: npm clean-install .
- run: npm run lint
- run: npm run test
- run: npm run build
- run: ./makedeb.sh