Skip to content

chore: Add ESLint (#13) #40

chore: Add ESLint (#13)

chore: Add ESLint (#13) #40

Workflow file for this run

name: Release
on:
push:
branches:
- main
jobs:
audit:
name: Audit dependencies
runs-on: rows-fe-default
steps:
- name: Checkout code
uses: actions/checkout@v4
- uses: ./.github/actions/setup-node
- name: Audit dependencies
run: npm audit --production --audit-level=high
static-analysis:
name: Static analysis
runs-on: rows-fe-default
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: ./.github/actions/setup-node
- uses: ./.github/actions/install-dependencies
with:
node-auth-token: ${{ secrets.NODE_AUTH_TOKEN }}
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Linting JS/TS
run: npm run lint
- name: Type checking
run: npm run check-types
build-chrome-extension:
name: Build Chrome extension artifact
runs-on: rows-fe-default
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: ./.github/actions/install-dependencies
with:
node-auth-token: ${{ secrets.NODE_AUTH_TOKEN }}
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Build - production file
run: |
npm run build
- name: Create zip
run: |
cd dist
zip -r ../chrome-extension-${{ github.sha }}.zip *
- name: Archive chrome-extension artifact
uses: actions/upload-artifact@v2
with:
name: chrome-extension-${{ github.sha }}
path: chrome-extension-${{ github.sha }}.zip