diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 683fad7..a0a5a21 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -42,7 +42,7 @@ jobs: - name: Install dependencies run: ${{ steps.detect-package-manager.outputs.manager }} ${{ steps.detect-package-manager.outputs.command }} - name: Build project - run: ${{ steps.detect-package-manager.outputs.runner }} npm run build + run: ${{ steps.detect-package-manager.outputs.runner }} yarn build - name: Upload artifact uses: actions/upload-pages-artifact@v2 with: diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index e33d489..deae926 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -1,7 +1,11 @@ name: Lint -on: [pull_request] - +on: + pull_request: + branches: main + push: + branches: + - main jobs: eslint: runs-on: ubuntu-latest diff --git a/.github/workflows/tsc.yml b/.github/workflows/tsc.yml index 871ca07..768519c 100644 --- a/.github/workflows/tsc.yml +++ b/.github/workflows/tsc.yml @@ -1,18 +1,22 @@ name: Type Check -on: [pull_request] - +on: + pull_request: + branches: main + push: + branches: + - main jobs: tsc: name: tsc runs-on: ubuntu-latest steps: - - uses: actions/checkout@v1 - - name: install node v18 - uses: actions/setup-node@v1 - with: - node-version: 18 - - name: yarn install - run: yarn install - - name: tsc - uses: icrawl/action-tsc@v1 \ No newline at end of file + - uses: actions/checkout@v1 + - name: install node v18 + uses: actions/setup-node@v1 + with: + node-version: 18 + - name: yarn install + run: yarn install + - name: tsc + uses: icrawl/action-tsc@v1 diff --git a/.github/workflows/unitTest.yml b/.github/workflows/unitTest.yml index 6f703a1..218fe00 100644 --- a/.github/workflows/unitTest.yml +++ b/.github/workflows/unitTest.yml @@ -1,7 +1,11 @@ name: Unit Test -on: [pull_request] - +on: + pull_request: + branches: main + push: + branches: + - main jobs: test: runs-on: ubuntu-latest @@ -10,7 +14,7 @@ jobs: - name: Test using Node.js uses: actions/setup-node@v1 with: - node-version: '18' + node-version: "18" - run: yarn install - run: yarn test:ci @@ -40,4 +44,4 @@ jobs: "state": "failure", "description": "Tests failed", "target_url": "https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}" - }' \ No newline at end of file + }'