This repository has been archived by the owner on Oct 25, 2024. It is now read-only.
Publish tagged versions to NPM #24
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build and Test | |
concurrency: test-${{ github.ref }} | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
types: [opened, synchronize, reopened, ready_for_review] | |
branches: [main] | |
workflow_dispatch: | |
permissions: | |
contents: read | |
jobs: | |
build-and-test: | |
if: github.event_name == 'push' || (github.event_name == 'pull_request' && !github.event.pull_request.draft) | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
clean: true | |
- uses: actions/setup-node@v4 | |
with: | |
node-version-file: ".nvmrc" | |
cache: "npm" | |
- run: npm ci | |
- run: npm run format:check | |
- run: npm run build | |
- run: npm run lint | |
- run: npm run coverage |