build-tools/.github/workflows/pr-lint-and-check.yml
2025-01-29 18:32:49 +05:30

26 lines
470 B
YAML

name: NPM Link and check resuable workflow
on:
workflow_call:
jobs:
lint-and-check:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22
registry-url: ${{ vars.NPM_REGISTRY }}
token: ${{ secrets.NPM_TOKEN }}
- name: Install npm dependencies
run: |
npm install -g pnpm
pnpm install
- run: pnpm lint
- run: pnpm check