Skip to content

Commit

Permalink
Update build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
janssen-tiobe authored Oct 11, 2023
1 parent bb24e9b commit f9687ce
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,20 +15,16 @@ jobs:
steps:
- name: Setup git config
uses: actions/checkout@v4
with:
token: ${{ secrets.TIOBE_TOKEN }}
- run: |
git config user.name ${{ secrets.TIOBE_NAME }}
git config user.email ${{ secrets.TIOBE_EMAIL }}
git pull
- name: Build
uses: actions/setup-node@v3
with:
node-version: 16
- run: |
npm ci
npm run all
- run: |
git add dist
git diff --staged --quiet || git commit -m 'Build dist after push to main'
git push origin main
- name: Pull and push
uses: EndBug/add-and-commit@v9
with:
add: dist
pull: --rebase
message: Build dist after push to main

0 comments on commit f9687ce

Please sign in to comment.