diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml new file mode 100644 index 0000000..cbb5bc3 --- /dev/null +++ b/.github/workflows/lint.yaml @@ -0,0 +1,29 @@ +name: Lint + +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + release: + types: [ created ] + +permissions: + contents: read + packages: write + +jobs: + build_docker: + runs-on: ubuntu-22.04 + name: Build & publish docker image + steps: + - name: Install NodeJS + uses: actions/setup-node@v2 + - name: Check out the repo + uses: actions/checkout@v4 + - name: Install dependencies + run: npm ci --cache .npm --prefer-offline + - name: prettier-check + run: npm run prettier-check + - name: lint + run: npm run lint -- --quiet