Skip to content
Merged
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
12 changes: 0 additions & 12 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,18 +41,6 @@ jobs:
- name: 🔒 Audit dependencies
run: pnpm audit --audit-level high

- name: 📦 Commit dist/
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
git add dist/
if ! git diff --staged --quiet; then
git commit -m "build: auto-update dist/ [skip ci]"
git push
else
echo "dist/ is already up to date."
fi

release:
name: Release
needs: test
Expand Down
16 changes: 16 additions & 0 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,13 @@ jobs:
test:
name: Test
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: 📥 Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
with:
ref: ${{ github.head_ref }}

- name: 📦 Setup pnpm
uses: pnpm/action-setup@0e279bb959325dab635dd2c09392533439d90093 # v6
Expand All @@ -36,5 +40,17 @@ jobs:
- name: 🏗️ Build
run: pnpm build

- name: 📦 Commit dist/ to PR branch
run: |
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
git add dist/
if ! git diff --staged --quiet; then
git commit -m "build: auto-update dist/ [skip ci]"
git push origin HEAD:${{ github.head_ref }}
else
echo "dist/ is already up to date."
fi

- name: 🔒 Audit dependencies
run: pnpm audit --audit-level high
Loading