diff --git a/.github/workflows/auto-release.yaml b/.github/workflows/auto-release.yaml index 2948b89..35e3365 100644 --- a/.github/workflows/auto-release.yaml +++ b/.github/workflows/auto-release.yaml @@ -1,3 +1,5 @@ +name: Release + on: pull_request: branches: @@ -78,6 +80,29 @@ jobs: - name: Publish run: echo "NPM PUBLISH" + upload-coverage: + needs: + - prepare + - test + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + with: + node-version: "18.x" + cache: "yarn" + - name: Install dependencies + run: yarn --frozen-lockfile + + - name: Run the coverage + run: | + echo "run coverage" + + - name: Upload the coverage file + run: | + echo coverage tag: needs: @@ -114,8 +139,12 @@ jobs: steps: - uses: actions/checkout@v3 - - name: Pull the remote branch - run: git pull $(git remote show) ${{ github.ref_name }} + with: + fetch-depth: 0 + ref: ${{ github.head_ref }} + - name: Checkout the commit for pull request + run: git checkout ${{ github.event.pull_request.head.sha }} + - uses: actions/setup-node@v3 with: node-version: "18.x"