Skip to content

Commit

Permalink
feat: Improve PR development flow (#88)
Browse files Browse the repository at this point in the history
* build(deps): Bump alphaTab

* fix: Wrong default value

* build: Add PR pipeline

* build: Add dependabot auto-approve
  • Loading branch information
Danielku15 authored May 14, 2024
1 parent 2024f53 commit 38c1528
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 4 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/build-pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Build PR
on:
pull_request:

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: lts/*
- run: npm install
- run: npm install @coderline/alphatab@alpha
- run: npm run build
- run: cp web.config ./build
- uses: actions/upload-artifact@v4
with:
name: website
path: ./build/
17 changes: 17 additions & 0 deletions .github/workflows/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Dependabot auto-merge
on: pull_request

permissions:
pull-requests: write
contents: write

jobs:
dependabot:
runs-on: ubuntu-latest
if: ${{ github.actor == 'dependabot[bot]' }}
steps:
- name: Enable auto-merge for Dependabot PRs
run: gh pr merge --auto --squash "$PR_URL"
env:
PR_URL: ${{github.event.pull_request.html_url}}
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
2 changes: 1 addition & 1 deletion docs/tutorial-android/track-selector.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ For the sake of styling we add some styles to our code. This code should not act
how to properly style controls in android but is rather a simplistic approach for this tutorial.

<Tabs
defaultValue="colors"
defaultValue="themes"
values={[
{ label: 'res/values/themes/themes.xml', value: 'themes', }
]
Expand Down
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 38c1528

Please sign in to comment.