Skip to content

chore: Set permissions for GitHub actions #73

chore: Set permissions for GitHub actions

chore: Set permissions for GitHub actions #73

Workflow file for this run

name: Lint
on:
pull_request:
branches:
- master
permissions:
contents: read
jobs:
linux:
name: Linux - Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: actions/setup-node@v2
with:
node-version: 16
cache: npm
- run: npm ci
- run: |
npm run commitlint -- \
--verbose \
--from `git merge-base origin/master $GITHUB_SHA`
- run: npm run lint