Skip to content

Commit

Permalink
GitHub Actionsでdistを更新する
Browse files Browse the repository at this point in the history
  • Loading branch information
oki07 committed Nov 25, 2024
1 parent 0e2afd3 commit ac2803e
Show file tree
Hide file tree
Showing 3 changed files with 469 additions and 3 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Build

on:
push:
branches:
- main

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- run: npm ci
- run: npm run build
- run: git add dist
- id: check_changes
run: git diff --staged --quiet || echo "changes_exist=true" >> $GITHUB_OUTPUT
- if: steps.check_changes.outputs.changes_exist == 'true'
run: |
git config --local user.name "GitHub Action"
git config --local user.email "action@github.com"
git commit -m "distディレクトリを更新"
git push
Loading

0 comments on commit ac2803e

Please sign in to comment.