Skip to content

Commit

Permalink
CI/CD: Build release
Browse files Browse the repository at this point in the history
  • Loading branch information
temporary-simon committed Jul 25, 2023
1 parent fe80aa2 commit 9a04ae8
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Build Release Branch
on:
push:
branches:
- "release/*"
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2

- 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 dist node_modules
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

0 comments on commit 9a04ae8

Please sign in to comment.