Skip to content

refactor: use types instead of interfaces #45

refactor: use types instead of interfaces

refactor: use types instead of interfaces #45

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@master
- run: |
npm ci --legacy-peer-deps
npm install @rollup/rollup-linux-x64-gnu --legacy-peer-deps
npm run lint
# npm run lint:ts
npm run test:ci
test-coverage:
needs: test
name: test-coverage
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@main
- uses: actions/setup-node@main
with:
node-version: 20
- uses: actions/cache@main
with:
path: node_modules
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
- run: |
npm ci --legacy-peer-deps
npm install @rollup/rollup-linux-x64-gnu --legacy-peer-deps
- uses: paambaati/[email protected]
env:
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
with:
coverageCommand: npm run coverage
debug: true
publish-to-npm:
needs: test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@main
- uses: actions/setup-node@main
with:
node-version: 20
registry-url: https://registry.npmjs.org/
- uses: actions/cache@main
with:
path: node_modules
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
- run: |
npm ci --legacy-peer-deps
npm run 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 }}