fix: bump release type by dependent if deps.release is inherit #116
Workflow file for this run
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
# This is a Github Workflow that runs tests on any push or pull request. | |
# If the tests pass and this is a push to the master branch it also runs Semantic Release. | |
name: CI | |
on: [push, pull_request] | |
jobs: | |
push: | |
if: github.event_name == 'push' | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
- run: yarn | |
- name: Unit test only | |
run: yarn test | |
- name: Codeclimate | |
if: github.ref == 'refs/heads/master' | |
uses: paambaati/[email protected] | |
env: | |
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }} | |
with: | |
coverageLocations: | | |
${{github.workspace}}/coverage/lcov.info:lcov | |
- name: Release | |
if: github.ref == 'refs/heads/master' | |
env: | |
GH_TOKEN: ${{ secrets.GH_TOKEN }} | |
GH_USER: ${{ secrets.GH_USER }} | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | |
GIT_AUTHOR_EMAIL: ${{ secrets.GIT_AUTHOR_EMAIL }} | |
GIT_AUTHOR_NAME: ${{ secrets.GIT_AUTHOR_EMAIL }} | |
GIT_COMMITTER_EMAIL: ${{ secrets.GIT_COMMITTER_EMAIL }} | |
GIT_COMMITTER_NAME: ${{ secrets.GIT_COMMITTER_NAME }} | |
run: npx -p @qiwi/semrel-toolkit semrel | |
pr: | |
if: github.event_name == 'pull_request' | |
strategy: | |
matrix: | |
os: [ ubuntu-22.04 ] | |
node-version: [ 18, 20 ] | |
name: Test (Node v${{ matrix.node-version }}, OS ${{ matrix.os }}) | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- run: yarn | |
- name: Run tests | |
run: yarn test |