Skip to content

build: prepare new release workflow #12

build: prepare new release workflow

build: prepare new release workflow #12

Workflow file for this run

name: CI
on:
push:
branches:
- '*'
tags:
- 'v*.*.**'
pull_request:
permissions:
contents: read
jobs:
release:
name: Lint and test
runs-on: ubuntu-latest
env:
GH_TOKEN: ${{ github.token }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 20
- name: Cache Node Modules
id: cache-node-modules
uses: actions/cache@v3
with:
path: node_modules
key: node-modules-${{ runner.os }}-${{ hashFiles('package-lock.json') }}
- name: Install dependencies
if: steps.cache-node-modules.outputs.cache-hit != 'true'
run: npm ci
- name: Lint
run: npm run lint
- name: Vulnerabilities
run: npm audit
- name: Optional Dependencies
run: npm run test-node