diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index 5b0a353..8f89a14 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/pull-request.yml @@ -2,32 +2,16 @@ name: Verify build on: push: - branches: [ main ] + branches: [main] pull_request: # The branches below must be a subset of the branches above - branches: [ main ] + branches: [main] -jobs: - build: - runs-on: ubuntu-latest - - strategy: - matrix: - node-version: [14.x, 16.x] - - steps: - - uses: actions/checkout@v2 - - - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v1 - with: - node-version: ${{ matrix.node-version }} - - - - name: Install Dependencies - run: npm install - - name: Generate .env file - run: cp .env.example .env - - name: Build - run: npm run build +jobs: + call-workflow-in-another-repo: + uses: hotwax/dxp-components/.github/workflows/common-pull-request.yml@main + with: + config-path: .github/labeler.yml + secrets: + envPAT: ${{ secrets.envPAT }}