Skip to content

chore(deps-dev): bump chokidar from 4.0.1 to 4.0.3 #44

chore(deps-dev): bump chokidar from 4.0.1 to 4.0.3

chore(deps-dev): bump chokidar from 4.0.1 to 4.0.3 #44

Workflow file for this run

name: CI
on:
push:
branches:
- main
tags:
- v*.*.*
pull_request:
branches:
- main
jobs:
Lint:
name: Lint
runs-on: ubuntu-latest
steps:
- name: Checkout, Setup Node.js v${{ env.NODE_VERSION }} and Install dependencies
uses: manferlo81/action-checkout-node-install@v0
with:
node-version: ${{ env.NODE_VERSION }}
env:
NODE_VERSION: 20.x
- name: Lint
run: npm run lint
Test_and_Build:
strategy:
matrix:
os:
- name: Windows
image: windows-latest
- name: Ubuntu
image: ubuntu-latest
- name: macOS
image: macos-latest
node-version:
- 18.x
- 20.x
- 21.x
- 22.x
name: Test and Build, ${{ matrix.os.name }}, Node.js v${{ matrix.node-version }}
runs-on: ${{ matrix.os.image }}
needs: Lint
steps:
- name: Checkout, Setup Node.js v${{ matrix.node-version }} and Install dependencies
uses: manferlo81/action-checkout-node-install@v0
with:
node-version: ${{ matrix.node-version }}
- name: Test
run: npm test
env:
COVERAGE: SKIP
- name: Build
run: npm run build
Upload_Coverage:
name: Upload Coverage to Codecov
runs-on: ubuntu-latest
if: github.event_name == 'push' && github.ref_type == 'branch'
needs: Test_and_Build
steps:
- name: Checkout, Setup Node.js v${{ env.NODE_VERSION }} and Install dependencies
uses: manferlo81/action-checkout-node-install@v0
with:
node-version: ${{ env.NODE_VERSION }}
env:
NODE_VERSION: 20.x
- name: Test
run: npm test
env:
COVERAGE: CI
- name: Upload Coverage
uses: codecov/codecov-action@v4
with:
directory: coverage
token: ${{ secrets.CODECOV_TOKEN }}
Create_Release:
name: Create GitHub Release
runs-on: ubuntu-latest
if: github.ref_type == 'tag'
needs: Test_and_Build
permissions:
contents: write
steps:
- name: Checkout, Setup Node.js v${{ env.NODE_VERSION }} and Install dependencies
uses: manferlo81/action-checkout-node-install@v0
with:
node-version: ${{ env.NODE_VERSION }}
env:
NODE_VERSION: 20.x
- name: Build
run: npm run build
- name: Create Tarball
run: npm pack
- name: Create Release for ${{ github.ref_name }}
uses: manferlo81/action-auto-release@v0
with:
files: gen-unit-*.tgz
Publish_to_npm:
name: Publish Package to npm Registry
runs-on: ubuntu-latest
if: github.ref_type == 'tag'
needs: Test_and_Build
steps:
- name: Checkout, Setup Node.js v${{ env.NODE_VERSION }} and Install dependencies
uses: manferlo81/action-checkout-node-install@v0
with:
node-version: ${{ env.NODE_VERSION }}
registry-url: https://registry.npmjs.org
env:
NODE_VERSION: 20.x
- name: Build
run: npm run build
- name: Publish
run: npm publish --provenance --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}