add a cache delete action #15
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 | |
on: | |
workflow_dispatch: | |
pull_request: | |
push: | |
branches: [main] | |
jobs: | |
build-action: | |
name: Build Action | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout Project | |
uses: actions/[email protected] | |
- name: Setup Node.js | |
uses: actions/[email protected] | |
with: | |
node-version-file: .nvmrc | |
- name: Install Dependencies | |
run: npm ci | |
- name: Check Formatting | |
run: | | |
npm run format | |
git diff && git diff-index --quiet --exit-code HEAD | |
- name: Check Lint | |
run: npm run lint | |
- name: Build Action | |
run: | | |
npm run build | |
git diff && git diff-index --quiet --exit-code HEAD |