mirror of
https://github.com/kiegroup/git-backporting.git
synced 2025-07-20 13:38:22 +02:00
ci: automatic dist folder generation
Release-As: 2.0.1
This commit is contained in:
parent
0dd4700783
commit
6ed41b245d
3 changed files with 27 additions and 2 deletions
24
.github/workflows/automatic-build.yml
vendored
Normal file
24
.github/workflows/automatic-build.yml
vendored
Normal 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"
|
Loading…
Add table
Add a link
Reference in a new issue