Merge pull request #164 from tiobe/dependabot/npm_and_yarn/vercel/ncc… #185
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: Build | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
name: build | |
runs-on: ubuntu-latest | |
if: ${{ !contains(github.event.head_commit.message, 'Build dist after push to main') }} | |
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 |