Automatically built for release #16
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 Release Branch | |
on: | |
push: | |
branches: | |
- "release/*" | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
with: | |
token: ${{ secrets.GH_TOKEN }} | |
fetch-depth: 0 | |
- name: Setup Node.js | |
uses: actions/setup-node@v2 | |
with: | |
node-version: "18.16.0" | |
- name: Install Dependencies | |
run: npm ci | |
- name: Build | |
run: npm run build | |
- name: Commit changes | |
run: | | |
git config --local user.email "simonwa01@github.com" | |
git config --local user.name "GitHub Action" | |
git add -f dist | |
if git diff --quiet && git diff --staged --quiet; then | |
echo "No changes to commit" | |
else | |
git commit -m "Automatically built for release" | |
git push | |
fi |