Skip to content

Ran ==> npm install --save-dev tailwindcss postcss-loader to install … #35

Ran ==> npm install --save-dev tailwindcss postcss-loader to install …

Ran ==> npm install --save-dev tailwindcss postcss-loader to install … #35

name: Lint check, format check, and build
on:
push:
branches:
- main
paths: # We only run the workflow if the code in these files/directories changes
- '.github/workflows/lint-and-format.yml' # This file
- 'saaslaunchpad-chrome-extension/**' # The working directory for this article
pull_request:
paths:
- '.github/workflows/lint-and-format.yml'
- 'saaslaunchpad-chrome-extension/**'
# This allows a subsequently queued workflow run to interrupt previous runs
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id}}
cancel-in-progress: true
defaults:
run:
shell: bash
working-directory: ./saaslaunchpad-chrome-extension
permissions:
contents: read
jobs:
lint-format-build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install dependencies
run: |
npm install --no-save
- name: Format check and lint
run: |
npm run format-check
npm run lint
- name: Build
run: |
npm run build