Skip to content

build(deps-dev): bump dev dependencies #50

build(deps-dev): bump dev dependencies

build(deps-dev): bump dev dependencies #50

name: Bundle and commit
on:
workflow_dispatch:
push:
branches:
- main
paths-ignore:
- dist/**
permissions:
contents: write
concurrency:
group: bundle-and-commit-${{ github.ref }}
cancel-in-progress: false
jobs:
bundle:
name: Run bundle and commit changes
runs-on: ubuntu-latest
if: github.actor != 'github-actions[bot]'
steps:
- name: Checkout
uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Setup Node
uses: actions/setup-node@v6
with:
node-version: 20
cache: npm
- name: Install
run: npm ci
- name: Bundle
run: npm run bundle
- name: Commit and push if changed
shell: bash
run: |
set -euo pipefail
if [ -z "$(git status --porcelain)" ]; then
echo "No changes to commit."
exit 0
fi
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git add -A
git commit -m "chore: bundle dist [skip ci]"
git push