Update links #11
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Dist | |
on: | |
push: | |
branches: | |
- main | |
paths-ignore: | |
- 'dist/*.js' | |
jobs: | |
build: | |
if: github.event_name == 'push' | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v2 | |
with: | |
node-version: '16' | |
- name: Install dependencies | |
run: npm install | |
- name: Build dist | |
run: npm run dist | |
- name: Configure Git user | |
run: | | |
git config --global user.name "github-actions[bot]" | |
git config --global user.email "github-actions[bot]@users.noreply.github.com" | |
- name: Commit generated code | |
run: | | |
if ! git diff --exit-code --quiet; then | |
git add . | |
git commit -m "Update generated dist ($(git rev-parse --short HEAD))" | |
git push | |
fi |