Skip to content

Update devDependencies - autoclosed #992

Update devDependencies - autoclosed

Update devDependencies - autoclosed #992

Workflow file for this run

name: Build and Test
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [14.x, 16.x, 18.x, 19.x]
steps:
- name: ⏬ Checkout code
uses: actions/checkout@v3
- name: πŸ”’ Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: ⏬ Install
run: |
npm install
- name: ✨ Lint
run: |
npm run lint
- name: πŸ”¨ Build
run: |
npm run build
- name: πŸ§ͺ Test
run: |
npm test
env:
FORCE_COLOR: 1
JEST_IMAGE_SNAPSHOT_TRACK_OBSOLETE: 1
- name: πŸ“Έ Upload failed screenshot tests
uses: actions/upload-artifact@v3
if: failure()
with:
name: screenshots
path: tests/__image_snapshots__/__diff_output__/*
- name: πŸ“ˆ Coveralls
uses: coverallsapp/github-action@v2.2.0
with:
github-token: ${{ secrets.github_token }}
- name: πŸ“¦ Publish
if: ${{ github.ref == 'refs/heads/main' }}
run: |
npm config set //registry.npmjs.org/:_authToken=$NPM_AUTH_TOKEN
npm run trypublish
env:
CI: true
NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}