Skip to content

fix(deps): update dependency lerna to v8 (main) #513

fix(deps): update dependency lerna to v8 (main)

fix(deps): update dependency lerna to v8 (main) #513

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
env:
NODE_VERSION: 16
jobs:
quality:
name: Quality checks
runs-on: ubuntu-latest
strategy:
matrix:
node: [14, 16, 18]
steps:
- name: Checkout
uses: actions/[email protected]
- name: Setup Node.js
uses: actions/[email protected]
with:
node-version: ${{ matrix.node }}
cache: 'yarn'
- name: Install dependencies
run: yarn install --frozen-lockfile --non-interactive --immutable
- name: Lint
run: yarn lint
- name: Unit tests
run: yarn test --coverage
- name: Upload coverage to Codecov
uses: codecov/[email protected]
with:
files: ./coverage/coverage-final.json
fail_ci_if_error: true
release:
needs: [quality]
if: github.ref == 'refs/heads/main'
name: Release
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/[email protected]
with:
fetch-depth: 0
- name: Setup Node.js
uses: actions/[email protected]
with:
node-version: ${{ env.NODE_VERSION }}
cache: 'yarn'
- name: Install dependencies
run: yarn install --frozen-lockfile --non-interactive --immutable
- name: Git Identity
run: |
git config user.name github-actions
git config user.email [email protected]
git remote set-url origin https://x-access-token:${GH_TOKEN}@github.com/$GITHUB_REPOSITORY
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Verify npm access
run: |
echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> ~/.npmrc
npm whoami #uses .npmrc from root and the env var
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Release
run: yarn release --yes --no-verify-access
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}