Skip to content

chore(deps): update linters (major) - autoclosed #1486

chore(deps): update linters (major) - autoclosed

chore(deps): update linters (major) - autoclosed #1486

name: Test and Deploy
on:
# Run on pushes to main..
push:
branches:
- main
# ..and any pull request.
pull_request:
concurrency:
group: env-${{ github.ref }}
jobs:
test:
name: Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '20'
check-latest: true
- uses: actions/cache@v4
with:
path: |
node_modules
*/*/node_modules
key: ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}
- run: yarn
- run: yarn test
- name: Upload Coverage Report
uses: actions/upload-artifact@v4
with:
path: coverage/lcov-report
- name: 'Upload coverage to Codecov'
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
publish:
name: Publish to NPM
if: github.ref == 'refs/heads/main'
needs:
- test
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
check-latest: true
- name: Install dependencies
run: yarn
- name: Prepublish
run: yarn prepublish
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: yarn release