Files
html5-boilerplate/.github/workflows/build-dist.yml
dependabot[bot] c3a1e71d98 chore(deps): bump actions/setup-node from 5.0.0 to 6.0.0 (#3318)
Bumps [actions/setup-node](https://github.com/actions/setup-node) from 5.0.0 to 6.0.0.
- [Release notes](https://github.com/actions/setup-node/releases)
- [Commits](a0853c2454...2028fbc5c2)

---
updated-dependencies:
- dependency-name: actions/setup-node
  dependency-version: 6.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-11-04 14:50:57 +09:00

48 lines
1.4 KiB
YAML

name: Build and PR dist changes
on:
push:
branches: [main]
jobs:
build-and-pr-dist:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
with:
persist-credentials: false
- name: Setup Node.js
uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0
with:
node-version: "lts/*"
- name: Install dependencies
run: npm ci
- name: Build project
run: npm run build
- name: Check for dist changes
id: git-diff
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git add dist
if git diff --cached --quiet; then
echo "changed=false" >> $GITHUB_OUTPUT
else
echo "changed=true" >> $GITHUB_OUTPUT
fi
- name: Create Pull Request for dist changes
if: steps.git-diff.outputs.changed == 'true'
uses: peter-evans/create-pull-request@v6
with:
commit-message: "chore(dist): update dist folder after build"
title: "chore(dist): update dist folder after build"
body: "This PR updates the dist folder with the latest build output."
branch: update-dist-after-build
add-paths: dist