ci: automatic dist folder generation

Release-As: 2.0.1
This commit is contained in:
Andrea Lamparelli 2023-01-05 13:00:53 +01:00
parent 0dd4700783
commit 6ed41b245d
3 changed files with 27 additions and 2 deletions

24
.github/workflows/automatic-build.yml vendored Normal file
View file

@ -0,0 +1,24 @@
name: "Pull Request Checks"
on:
pull_request:
types:
- opened
- edited
- closed
- reopened
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Node ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- run: |
git config --global user.name "Github" && git config --global user.email "noreply@github.com"
npm run build
git add dist && rm -rf build
git diff --staged --quiet || git commit -m "build: dist folder generated"