Skip to content

chore(dev): bump semantic-release from 21.1.1 to 22.0.1 #2850

chore(dev): bump semantic-release from 21.1.1 to 22.0.1

chore(dev): bump semantic-release from 21.1.1 to 22.0.1 #2850

Workflow file for this run

name: CI
# Controls when the action will run.
on:
# Triggers the workflow on push or pull request events on master and beta branch
push:
branches: [ master, beta ]
pull_request:
branches: [ master, beta ]
jobs:
build_and_test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.x, 18.x, 19.x, 20.x]
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: npm ci
- name: Generate release notes
if: ${{ github.event_name == 'pull_request' }}
id: release-notes-preview
uses: guilhermetod/[email protected]
- name: Comment release notes preview
if: ${{ github.event_name == 'pull_request' }}
uses: peter-evans/create-or-update-comment@v2
continue-on-error: true
with:
issue-number: ${{ github.event.number }}
body: ${{ steps.release-notes-preview.outputs.releaseNotes }}
- name: Build
run: npm run build
- name: Test
run: npm run test:ci
- name: Upload Coverage report
uses: codecov/codecov-action@v3
with:
directory: ./coverage # optional
flags: unittests # optional
verbose: true # optional (default = false)
- name: Release
if: ${{ github.event_name == 'push' }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npx semantic-release