Skip to content

Merge pull request #72 from Rotzbua/feat_strict_typescript #212

Merge pull request #72 from Rotzbua/feat_strict_typescript

Merge pull request #72 from Rotzbua/feat_strict_typescript #212

Workflow file for this run

name: CI
# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the master branch
push:
branches: [ master ]
pull_request:
branches: [ master ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [ 18, 20, 22 ]
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
# Runs a single command using the runners shell
- name: Install pinned dependencies from package-lock.json
run: npm ci
- name: Run build prod
run: npm run build:prod
- name: Run test
run: npm run test
env:
NODE_OPTIONS: --max_old_space_size=4096
- name: Run lint
run: npm run lint
#if the version will be updated in package.json to 1.2.3 with the commit message Release 1.2.3 this job action will perform a new tag before publishing
# npm-publish:
# name: npm-publish
# needs: build
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v1
# - uses: actions/setup-node@v1
# with:
# node-version: 12
# registry-url: https://registry.npmjs.org/
# - run: npm run publish
# env:
# NODE_AUTH_TOKEN: ${{secrets.NPM_AUTH_TOKEN}}