Skip to content

chore: update deps, security fixes #43

chore: update deps, security fixes

chore: update deps, security fixes #43

Workflow file for this run

name: build
on:
push:
branches:
- main
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.x, 18.x, 20.x]
steps:
- uses: actions/checkout@main
with:
fetch-depth: "0"
- uses: actions/setup-node@main
with:
node-version: 20
- uses: actions/cache@main
with:
path: node_modules
key: ${{ runner.os }}-node-${{ hashFiles('**/yarn.lock') }}
- run: |
yarn install --frozen-lockfile
yarn lint
yarn lint:ts
yarn test:ci
test-coverage:
needs: test
name: test-coverage
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@main
with:
fetch-depth: "0"
- uses: actions/setup-node@main
with:
node-version: 20
- uses: actions/cache@main
with:
path: node_modules
key: ${{ runner.os }}-node-${{ hashFiles('**/yarn.lock') }}
- run: yarn install --frozen-lockfile
- uses: paambaati/codeclimate-action@v2.7.2
env:
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
with:
coverageCommand: yarn coverage
debug: true
publish-to-npm:
needs: test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@main
with:
fetch-depth: "0"
- uses: actions/setup-node@main
with:
node-version: 20
registry-url: https://registry.npmjs.org/
- run: |
yarn install --frozen-lockfile
yarn build
- name: Semantic Release
uses: cycjimmy/semantic-release-action@main
with:
branch: main
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }}