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