Skip to content

Merge pull request #509 from highcharts/enhancement/building-from-master #14

Merge pull request #509 from highcharts/enhancement/building-from-master

Merge pull request #509 from highcharts/enhancement/building-from-master #14

name: Build and Push
on:
push:
branches:
- stable
- master
jobs:
build-and-push:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '18.x.x'
- name: Install Dependencies
run: npm ci
- name: Build Project
run: npm run build
- name: Commit and Push /dist Directory
run: |
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
git add -f dist/
git commit -m "Build the dist files after merge."
git push -f