diff --git a/.github/workflows/auto-release.yaml b/.github/workflows/auto-release.yaml index 2948b89..9117881 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,10 @@ 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 }} + - uses: actions/setup-node@v3 with: node-version: "18.x" diff --git a/package.json b/package.json index b3e15c4..6ab8314 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ci-test-project", - "version": "1.0.9", + "version": "1.0.10", "main": "index.js", "repository": "https://github.com/mato533/test1.git", "author": "mato533 ", diff --git a/test.txt b/test.txt index 20b7a1e..b5ab794 100644 --- a/test.txt +++ b/test.txt @@ -7,3 +7,4 @@ CHANGELOG 1.0.8 1.0.8 1.0.9 +1.0.10