Skip to content

Merge pull request #37 from elek-io/fix-circular-dependency #38

Merge pull request #37 from elek-io/fix-circular-dependency

Merge pull request #37 from elek-io/fix-circular-dependency #38

Workflow file for this run

name: CD
on:
push:
branches:
- main
concurrency: ${{ github.workflow }}-${{ github.ref }}
jobs:
release:
name: Release
timeout-minutes: 15
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v4
with:
fetch-depth: 1
- name: Setup Node.js 18 environment
uses: actions/setup-node@v4
with:
node-version: 18
- name: Install dependencies
run: npm ic
- name: Run linter
run: npm run lint
- name: Run tests with coverage
run: npm run coverage
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
- name: Build
run: npm run build
- name: Create pull request or publish to NPM
uses: changesets/action@v1
with:
title: 'WIP: Release x.x.x'
commit: Release new version
publish: npm run release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}