diff --git a/.github/workflows/coverage-report.yml b/.github/workflows/coverage-report.yml index 1745fcd5..c897d175 100644 --- a/.github/workflows/coverage-report.yml +++ b/.github/workflows/coverage-report.yml @@ -31,7 +31,7 @@ jobs: env: CI: true - name: Run test - run: yarn test + run: yarn test:coverage - name: Create Coverage Badges uses: jaywcjlove/coverage-badges-cli@e07f25709cd25486855c1ba1b26da53576ff3620 diff --git a/.github/workflows/create-pr-to-main.yml b/.github/workflows/create-pr-to-main.yml index 790c620c..321af97d 100644 --- a/.github/workflows/create-pr-to-main.yml +++ b/.github/workflows/create-pr-to-main.yml @@ -11,18 +11,9 @@ permissions: jobs: create-pr-to-main: - runs-on: ubuntu-latest - steps: - - name: Abort if it's not a pre-release - if: github.event.release.prerelease == false - run: exit 1 - - name: Checkout test branch - uses: actions/checkout@v3 - with: - ref: 'test' - - - name: Create Pull Request from tag branch to main - run: | - gh pr create --title "Release ${{ github.event.release.tag_name }}" --body "Release ${{ github.event.release.tag_name }}" --base main --head test --repo ${{ github.repository }} - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + name: Build project and run CI checks + uses: fingerprintjs/dx-team-toolkit/.github/workflows/create-pr.yml@v1 + with: + target_branch: test + tag_name: ${{ github.event.release.tag_name }} + prerelease: ${{ github.event.release.prerelease }} diff --git a/.github/workflows/sync-main-with-test.yml b/.github/workflows/sync-main-with-test.yml new file mode 100644 index 00000000..7bd890fa --- /dev/null +++ b/.github/workflows/sync-main-with-test.yml @@ -0,0 +1,18 @@ +name: Sync test with main + +on: + push: + branches: + - main + +permissions: + pull-requests: write + contents: read + +jobs: + sync-test-with-main: + name: Build project and run CI checks + uses: fingerprintjs/dx-team-toolkit/.github/workflows/create-pr.yml@v1 + with: + target_branch: main + prerelease: false diff --git a/.releaserc b/.releaserc index 77ae4c14..b2aa8ef0 100644 --- a/.releaserc +++ b/.releaserc @@ -116,6 +116,7 @@ [ "@semantic-release/git", { + "message": "chore(release): ${nextRelease.version}\n\n${nextRelease.notes}", "assets": [ "CHANGELOG.md", "package.json"