29 lines
541 B
YAML
29 lines
541 B
YAML
name: NPM Link and check resuable workflow
|
|
|
|
on:
|
|
workflow_call:
|
|
|
|
env:
|
|
REPO: ${{ github.repository }}/temp #Add /temp for PR workflow
|
|
|
|
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
|