build(deps-dev): bump @commitlint/config-conventional from 18.1.0 to 19.6.0 #294
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI/CD | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
jobs: | |
test: | |
name: Test | |
strategy: | |
matrix: | |
os: [macos-latest, ubuntu-latest] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Install Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18.x | |
cache: "yarn" | |
- name: Set up yarn cache directory | |
id: yarn-cache-dir-path | |
run: | | |
echo "::set-output name=dir::$(yarn cache dir)" | |
- run: yarn install --frozen-lockfile | |
- run: yarn test:coverage | |
if: runner.os == 'macOs' | |
- run: xvfb-run -a yarn test | |
if: runner.os == 'Linux' | |
- run: yarn test | |
if: runner.os == 'Windows' | |
- name: Upload coverage to Codecov | |
if: runner.os == 'macOs' | |
uses: codecov/codecov-action@v3 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
semantic-release: | |
name: "Release" | |
runs-on: ubuntu-latest | |
needs: ["test"] | |
if: github.event_name == 'push' || github.event_name == 'workflow_dispatch' | |
steps: | |
- name: "Checkout" | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
persist-credentials: false | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
- uses: bahmutov/npm-install@v1 | |
with: | |
useRollingCache: true | |
install-command: yarn --frozen-lockfile | |
- name: "Build package" | |
run: yarn build | |
- name: "Release" | |
id: "release" | |
uses: codfish/semantic-release-action@v2.2.0 | |
env: | |
GH_TOKEN: ${{ secrets.GH_TOKEN }} |