diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 17b7f207e..3608eda14 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -15,7 +15,7 @@ permissions: contents: read concurrency: - group: ${{ github.workflow }}-${{ github.ref }} + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} cancel-in-progress: ${{ github.ref != 'refs/heads/master' }} jobs: @@ -29,17 +29,19 @@ jobs: run: needs: authorize # Require approval before running on forked pull requests - name: Run + name: Build Package runs-on: ubuntu-latest steps: - name: Checkout code uses: actions/checkout@v3 + with: + ref: ${{ github.event.pull_request.head.sha || github.ref }} - name: Setup Node uses: actions/setup-node@v3 with: - node-version: ${{ env.NODE_VERSION }} + node-version: 18 cache: 'npm' - name: Install dependencies