Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sync test with main #189

Closed
wants to merge 4 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/coverage-report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
21 changes: 6 additions & 15 deletions .github/workflows/create-pr-to-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
18 changes: 18 additions & 0 deletions .github/workflows/sync-main-with-test.yml
Original file line number Diff line number Diff line change
@@ -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
1 change: 1 addition & 0 deletions .releaserc
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@
[
"@semantic-release/git",
{
"message": "chore(release): ${nextRelease.version}\n\n${nextRelease.notes}",
"assets": [
"CHANGELOG.md",
"package.json"
Expand Down
Loading