Skip to content

chore(deps-dev): bump semantic-release from 19.0.5 to 21.0.9 #378

chore(deps-dev): bump semantic-release from 19.0.5 to 21.0.9

chore(deps-dev): bump semantic-release from 19.0.5 to 21.0.9 #378

Workflow file for this run

name: validate
on:
push:
branches: [main]
pull_request:
branches: ['**']
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
main:
strategy:
matrix:
node: [14, 16, 18]
runs-on: ubuntu-latest
steps:
- name: ⬇️ Checkout repo
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: ⎔ Setup node
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
- name: 📥 Download deps
run: yarn install
- name: ▶️ Run linter
run: yarn lint
- name: ▶️ Run typecheck
run: yarn typecheck
- name: ▶️ Run tests with coverage
run: yarn test:coverage
- name: ⬆️ Upload coverage report
uses: codecov/codecov-action@v3
with:
fail_ci_if_error: true
flags: node-${{ matrix.node }}
release:
needs: main
runs-on: ubuntu-latest
if:
${{ github.repository == 'testing-library/jest-native' && github.ref == 'refs/heads/main' &&
github.event_name == 'push' }}
steps:
- name: ⬇️ Checkout repo
uses: actions/checkout@v3
- name: ⎔ Setup node
uses: actions/setup-node@v3
with:
node-version: 18
- name: 📥 Download deps
uses: bahmutov/npm-install@v1
with:
useLockFile: false
- name: 🚀 Release
run: yarn semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}