diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 1fcead561..69817ac82 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -4,7 +4,12 @@ name: Build on: pull_request: + paths: + - "**/*.ts" push: + paths: + - "**/*.ts" + branches: - next - main @@ -20,10 +25,14 @@ jobs: steps: - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 + - name: Setup Node.js + uses: actions/setup-node@v3 with: node-version: ${{ env.NODE_VERSION }} cache: 'yarn' - - run: yarn install --frozen-lockfile - - run: yarn build:ts + - name: Install Dependencies + run: yarn install --frozen-lockfile + + - name: Build Typescript + run: yarn build:ts diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml index cdd52b842..7454cb18f 100644 --- a/.github/workflows/lint.yaml +++ b/.github/workflows/lint.yaml @@ -4,7 +4,14 @@ name: Lint on: pull_request: + paths: + - "**/*.{ts,md,html,json}" + - "*.md" push: + paths: + - "**/*.{ts,md,html,json}" + - "*.md" + branches: - next - main @@ -20,10 +27,14 @@ jobs: steps: - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 + - name: Setup Node.js + uses: actions/setup-node@v3 with: node-version: ${{ env.NODE_VERSION }} cache: 'yarn' - - run: yarn install --frozen-lockfile - - run: yarn lint + - name: Install Dependencies + run: yarn install --frozen-lockfile + + - name: Lint files + run: yarn lint