Skip to content

Commit efdf36d

Browse files
committed
ci: commit the dist after the build
1 parent 48bca6c commit efdf36d

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

.github/workflows/CI.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,13 +56,17 @@ jobs:
5656
run: |
5757
pnpm run test.lint
5858
59-
- name: Validate Dist
59+
- name: Update Dist
6060
run: |
6161
if [ "$(git diff --ignore-space-at-eol --text dist/ | wc -l)" -gt "0" ]; then
62-
echo "Detected uncommitted changes after build. See status below:"
63-
git diff --ignore-space-at-eol --text dist/ ':(exclude)*.js.map'
64-
exit 1
62+
git config user.name "github-actions[bot]"
63+
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
64+
git add dist/
65+
git commit -m "chore(build): update dist"
66+
git push
6567
fi
68+
env:
69+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6670

6771
- name: Upload Dist
6872
uses: actions/upload-artifact@v3

cspell.config.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ words:
7878
- nodistro
7979
- NOPASSWD
8080
- noprogressbar
81+
- noreply
8182
- nothrow
8283
- npmrc
8384
- Opencppcoverage

0 commit comments

Comments
 (0)