Skip to content

Update devDependencies - autoclosed #1036

Update devDependencies - autoclosed

Update devDependencies - autoclosed #1036

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@3dfc5567390f6fa9267c0ee9c251e4c8c3f18949 # v2.2.3
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 }}