Skip to content

build(deps): bump word-wrap from 1.2.3 to 1.2.4 #103

build(deps): bump word-wrap from 1.2.3 to 1.2.4

build(deps): bump word-wrap from 1.2.3 to 1.2.4 #103

Workflow file for this run

name: CI
on:
push:
branches:
- '**'
tags:
- v*
pull_request:
branches:
- master
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
- name: Yarn install
run: yarn
- name: Jest Annotations & Coverage
uses: mattallty/jest-github-action@v1.0.3
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
test-command: 'npm run test:unit:cover --json --outputFile=jest.results.json'
- name: Coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
parallel: true
path-to-lcov: ./tests/unit/coverage/lcov.info
coverage:
needs: test
name: Code Coverage
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Coveralls Finished
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.github_token }}
parallel-finished: true
deploy:
needs: coverage
name: Publish to NPM
if: startsWith(github.ref, 'refs/tags/')
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Checkout source
uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
- name: Build the code
run: |
yarn
yarn build
- name: Publish to NPM
uses: JS-DevTools/npm-publish@v1
with:
token: ${{ secrets.NPM_TOKEN }}