Skip to content

Commit

Permalink
feat: update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
njfamirm committed Aug 24, 2022
1 parent 7226ee7 commit 538192f
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 6 deletions.
15 changes: 12 additions & 3 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,12 @@ name: Build

on:
pull_request:
paths:
- "**/*.ts"
push:
paths:
- "**/*.ts"

branches:
- next
- main
Expand All @@ -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
17 changes: 14 additions & 3 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

0 comments on commit 538192f

Please sign in to comment.