Skip to content

Workflow file for this run

name: 👷 Build and Publish
on:
push:
branches:
- main
- fix/gh-vite
paths:
- '.github/workflows/build-publish.yml'
- 'src/**'
- 'scripts/**'
- 'package.json'
jobs:
build-and-publish:
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: write
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
cache: 'npm'
- run: npm i
- run: npm run build
- run: npm run test:coverage
- uses: coverallsapp/github-action@v2
if: always()
- uses: JS-DevTools/npm-publish@v2
with:
token: ${{ secrets.NPM_TOKEN }}